/* Jotly website — tokens from the Jotly design canvas */
:root {
  --bg: #F2F2EE;
  --ink: #121212;
  --white: #FFFFFF;
  --lime: #D4F25A;
  --violet: #B8A6FF;
  --orange: #FF8A5B;
  --sky: #7FC8F8;
  --pink: #F5B8D8;
  --text-2: #4A4A45;
  --text-3: #5F5F5A;
  --grey-dark: #B5B5AD;
  --chip-bg: #E4E4DE;
  --line: #CFCFC7;
  --rule: #DCDCD5;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:hover { color: #000; }
img, svg { flex-shrink: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.band-dark :focus-visible, .price-card :focus-visible { outline-color: var(--lime); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.03em; }
h3 { margin: 0; font-family: var(--display); font-weight: 700; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }
.band-white { background: var(--white); }
.band-dark { background: var(--ink); color: var(--white); }
.kicker { font-size: 14px; font-weight: 700; color: var(--text-3); }
.lime-text { color: var(--lime); }
.muted-14 { font-size: 14px; color: var(--text-3); }
.fine { font-size: 14px; color: var(--text-3); }

/* Logo */
.logo { display: flex; align-items: baseline; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -1px; text-decoration: none; color: var(--ink); }
.logo-dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--ink); margin-left: 3px; }
.logo-sm { font-size: 24px; letter-spacing: -0.8px; }
.logo-sm .logo-dot { width: 6px; height: 6px; border-radius: 3px; margin-left: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; font-weight: 600; }
.btn-lg { height: 58px; padding: 0 28px; font-size: 17px; }
.btn-xl { height: 62px; padding: 0 32px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { color: var(--white); background: #000; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { color: var(--ink); background: #DDF870; }
.btn-outline { border: 1.5px solid var(--line); font-weight: 600; padding: 0 26px; }
.btn-outline:hover { border-color: var(--ink); }

/* Header */
.site-header { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 600; }
.main-nav a, .footer-nav a { text-decoration: none; }
.main-nav a:hover, .footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; background: var(--chip-bg); border-radius: 18px; padding: 3px; }
.lang button { height: 30px; min-width: 40px; border: 0; border-radius: 15px; background: transparent; color: var(--text-3); font-size: 13px; font-weight: 700; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
@media (max-width: 760px) { .main-nav { display: none; } }

/* Hero */
.hero { padding-top: 48px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.pill { align-self: flex-start; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--white); font-size: 14px; font-weight: 600; }
.pill-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--ink); }
.hero-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(52px, 7vw, 104px); line-height: 0.92; letter-spacing: -0.04em; }
html[lang="ru"] .hero-title { font-size: clamp(48px, 6.4vw, 92px); line-height: 0.95; }
html[lang="es"] .hero-title { font-size: clamp(50px, 6.8vw, 100px); line-height: 0.93; }
.hero-title mark { background: var(--lime); color: inherit; border-radius: 0.18em; padding: 0 0.12em; }
.hero-lede { margin: 0; max-width: 520px; font-size: 20px; line-height: 1.5; color: var(--text-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { flex: 1 1 360px; display: flex; justify-content: center; position: relative; }
.hero-blob { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--lime); top: 90px; max-width: 100%; }
@media (max-width: 480px) { .hero-copy { flex-basis: 100%; } }

/* Phone frames — screens are drawn at 390×844 and scaled */
.phone { position: relative; flex-shrink: 0; }
.phone-screen { overflow: hidden; }
.screen-scale { width: 390px; height: 844px; transform-origin: 0 0; transform: scale(var(--s)); }
.phone-lg { width: 322px; height: 674px; padding: 10px; border-radius: 56px; background: var(--ink); }
.phone-lg .phone-screen { width: 302px; height: 654px; border-radius: 46px; }
.phone-lg .screen-scale { --s: 0.7744; }
.phone-sm { width: 262px; height: 548px; padding: 8px; border-radius: 46px; background: #2A2A27; }
.phone-sm .phone-screen { width: 246px; height: 532px; border-radius: 38px; }
.phone-sm .screen-scale { --s: 0.6308; }

/* How it works */
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.step { background: var(--bg); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.step h3 { font-size: 26px; }
.step p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.step-lime { background: var(--lime); }
.step-lime p { color: var(--ink); }
.step-num { width: 48px; height: 48px; border-radius: 24px; background: var(--ink); color: var(--lime); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 22px; }

/* Features */
.features-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.features-head h2 { max-width: 640px; }
.features-head p { margin: 0; max-width: 380px; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
@media (max-width: 360px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--white); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature h3 { margin-top: 4px; font-size: 24px; }
.feature p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.feat-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--c); display: flex; align-items: center; justify-content: center; }
.feat-icon-text { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink); }

/* Screens band */
.screens-section { display: flex; flex-direction: column; align-items: center; gap: 56px; }
.center-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.center-head p { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.5; color: var(--grey-dark); }
.screens { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }

/* Pricing */
.pricing { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.pricing-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pricing-copy p { margin: 0; max-width: 460px; font-size: 18px; line-height: 1.5; color: var(--text-2); }
.price-card { flex: 1 1 400px; max-width: 480px; background: var(--ink); color: var(--white); border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 480px) { .pricing-copy, .price-card { flex-basis: 100%; } .price-card { padding: 24px; } }
.row-between { display: flex; justify-content: space-between; }
.row-between.center { align-items: center; }
.row-between.baseline { align-items: baseline; }
.price-name { font-family: var(--display); font-weight: 700; font-size: 22px; }
.lime-badge { height: 30px; padding: 0 12px; border-radius: 15px; background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 700; display: flex; align-items: center; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price-num { font-family: var(--display); font-weight: 800; font-size: 72px; letter-spacing: -0.04em; line-height: 1; }
.price-per { font-size: 17px; color: var(--grey-dark); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.checks li { display: flex; gap: 12px; align-items: center; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 32px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--bg); border-radius: 22px; padding: 22px 24px; }
.faq summary { cursor: pointer; font-size: 19px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--text-2); }

/* Final CTA */
.final-cta { background: var(--lime); border-radius: 40px; padding: clamp(36px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.final-cta h2 { max-width: 680px; font-size: clamp(36px, 4.8vw, 64px); }

/* Footer */
.site-footer { padding-top: 24px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--rule); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; font-weight: 600; }

/* ───────── App screens (390×844 canvas) ───────── */
.scr { width: 390px; height: 844px; position: relative; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--body); }
.scr-tab { padding: 56px 20px 0; }
.scr-jot { padding: 52px 20px 28px; display: flex; flex-direction: column; gap: 16px; }
.spacer { flex: 1; }
.muted-13 { font-size: 13px; color: var(--text-3); font-weight: 500; }
.muted-12 { font-size: 12px; color: var(--text-3); }
.bold { font-weight: 600; }
.grey-13 { font-size: 13px; color: var(--grey-dark); font-weight: 500; }
.grey-12 { font-size: 12px; color: var(--grey-dark); font-weight: 500; }

.soft-chip { height: 44px; padding: 0 14px; border-radius: 22px; background: var(--white); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.soft-chip-sm { height: 36px; border-radius: 18px; }
.circ-btn { width: 44px; height: 44px; border-radius: 22px; background: var(--white); display: flex; align-items: center; justify-content: center; }

/* Quick jot */
.jot-head { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.jot-title { font-family: var(--display); font-weight: 700; font-size: 18px; }
.jot-amount-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.jot-amount { display: flex; align-items: baseline; justify-content: center; gap: 4px; height: 78px; font-family: var(--display); font-weight: 800; letter-spacing: -2.5px; }
.jot-sym { font-size: 40px; color: var(--text-3); }
.jot-num { font-size: 70px; line-height: 78px; }
.jot-num.empty { color: #BDBDB5; }
.jot-caret { display: inline-block; width: 3px; height: 56px; background: var(--ink); border-radius: 2px; margin-left: 4px; align-self: center; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .jot-caret { animation: none; } }
.jot-conv { height: 18px; font-size: 14px; color: var(--text-3); font-weight: 500; }
.jot-curs { display: flex; gap: 6px; justify-content: center; margin-top: 4px; }
.jot-curs button { height: 36px; padding: 0 12px; border-radius: 18px; border: 0; background: var(--white); color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.jot-curs button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.jot-note { display: flex; flex-direction: column; gap: 6px; }
.jot-note label { font-size: 13px; font-weight: 600; color: var(--text-3); }
.jot-note input { height: 48px; border: 0; border-radius: 16px; background: var(--white); padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); }
.jot-note input::placeholder { color: #76766F; }
.jot-cats { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 0 20px; scrollbar-width: none; }
.jot-cats::-webkit-scrollbar { display: none; }
.jot-cats button { height: 38px; padding: 0 14px 0 8px; border-radius: 19px; flex-shrink: 0; white-space: nowrap; border: 0; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.jot-cats button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.jot-cats .dot { width: 22px; height: 22px; border-radius: 11px; }
.jot-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.jot-keys button { height: 50px; border: 0; border-radius: 16px; background: var(--white); color: var(--ink); font-family: var(--display); font-size: 26px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.jot-keys button:active { background: var(--chip-bg); }
.jot-keys button.back { background: transparent; }
.jot-save { height: 60px; border: 0; border-radius: 30px; background: var(--lime); color: var(--ink); font-size: 17px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.jot-save.saved { background: var(--ink); color: var(--lime); }

/* Shared tab screen parts */
.tab-head { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.logo-app { font-size: 24px; letter-spacing: -0.5px; gap: 2px; }
.logo-app .logo-dot { margin-left: 2px; }
.avatar { width: 44px; height: 44px; border-radius: 22px; background: var(--lime); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: -0.3px; }
.scr-h1 { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.5px; }
.card-white { background: var(--white); border-radius: 28px; }
.card-dark { background: var(--ink); color: var(--white); border-radius: 28px; padding: 20px; }
.chips { display: flex; gap: 8px; margin-top: 18px; }
.chip { height: 36px; padding: 0 16px; border-radius: 18px; border: 1.5px solid #D9D9D2; font-size: 14px; font-weight: 600; display: flex; align-items: center; }
.chip-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.fade { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: linear-gradient(rgba(242,242,238,0), var(--bg) 55%); }
.fade-130 { height: 130px; }
.fade-120 { height: 120px; }
.tabbar { position: absolute; left: 14px; right: 14px; bottom: 22px; height: 76px; box-sizing: border-box; background: #F7F7F4; border: 1.5px solid var(--white); border-radius: 38px; box-shadow: 0 10px 30px rgba(18,18,18,0.10), 0 1px 3px rgba(18,18,18,0.06); display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.tabbar .tab { width: 68px; height: 62px; border-radius: 31px; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 600; }
.tabbar .tab.on { background: #E7E7E3; }
.tabbar .tab-plus { width: 66px; height: 66px; flex-shrink: 0; margin-top: -20px; border-radius: 33px; background: var(--lime); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px rgba(212,242,90,0.35), 0 10px 22px rgba(120,150,20,0.35); }

/* Activity */
.act-top { margin-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.month-btn { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--text-3); }
.big-num { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -2.5px; }
.delta-line { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-3); }
.delta { display: inline-flex; align-items: center; gap: 4px; background: #FFD9C9; color: var(--ink); font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.daily { margin-top: 20px; padding: 18px 18px 14px; }
.bars { position: relative; height: 112px; margin-top: 12px; display: flex; align-items: flex-end; gap: 3px; }
.bars-avg { position: absolute; left: 0; right: 0; bottom: 48px; border-top: 1.5px dashed #BDBDB5; }
.bars .bar { flex: 1; border-radius: 4px; }
.bar-axis { margin-top: 8px; font-size: 11px; color: var(--text-3); font-weight: 500; }
.tx-list { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.tx-day { font-size: 13px; font-weight: 600; color: var(--text-3); }
.tx-day-gap { margin-top: 8px; }
.tx { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 20px; padding: 10px 14px 10px 10px; }
.tx-icon { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.tx-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tx-name { font-weight: 600; font-size: 15px; }
.tx-meta { font-size: 13px; color: var(--text-3); }
.tx-amt { font-family: var(--display); font-weight: 700; font-size: 17px; }
.tx-amt-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.tx-conv { font-size: 12px; color: var(--text-3); }

/* Summary */
.sum-card { margin-top: 18px; }
.dark-num { font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -1.5px; }
.split { display: flex; gap: 4px; height: 56px; margin-top: 16px; }
.split span { border-radius: 12px; }
.split-foot { margin-top: 10px; }
.cat-list { list-style: none; margin: 16px 0 0; background: var(--white); border-radius: 24px; padding: 6px 16px; }
.cat-list li { display: flex; align-items: center; gap: 12px; height: 54px; border-bottom: 1px solid #ECECE6; }
.cat-list li:last-child { border-bottom-color: transparent; }
.cat-sw { width: 14px; height: 14px; border-radius: 5px; flex-shrink: 0; }
.cat-name { flex: 1; display: flex; align-items: baseline; gap: 8px; }
.cat-name b { font-weight: 600; font-size: 15px; }
.cat-name small { font-size: 12px; color: var(--text-3); }
.cat-pct { font-size: 13px; color: var(--text-3); width: 40px; text-align: right; }
.cat-amt { font-family: var(--display); font-weight: 700; font-size: 16px; width: 64px; text-align: right; }

/* Insights */
.ins-card { margin-top: 18px; }
.ins-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ins-total { display: flex; flex-direction: column; gap: 4px; }
.legend { display: flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; }
.ins-num { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -1px; }
.ins-months { display: flex; align-items: flex-end; justify-content: space-between; height: 170px; margin-top: 18px; }
.ins-months button { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 48px; height: 170px; justify-content: flex-end; border: 0; padding: 0; background: transparent; cursor: pointer; color: var(--grey-dark); font-size: 12px; font-weight: 600; }
.ins-months button[aria-pressed="true"] { color: var(--white); }
.ins-pair { display: flex; align-items: flex-end; gap: 4px; opacity: .55; }
.ins-months button[aria-pressed="true"] .ins-pair { opacity: 1; }
.ins-pair span { width: 14px; border-radius: 5px; }
.left-card { margin-top: 14px; padding: 18px 20px; }
.left-line { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.left-num { font-family: var(--display); font-weight: 800; font-size: 36px; letter-spacing: -1.2px; }
.left-bars { position: relative; display: flex; align-items: flex-end; justify-content: space-between; height: 92px; margin-top: 12px; padding: 0 9px; }
.left-avg { position: absolute; left: 0; right: 0; border-top: 1.5px dashed #BDBDB5; }
.left-bars .lb { position: relative; width: 30px; border-radius: 8px; }
.ins-note { margin-top: 14px; display: flex; align-items: center; gap: 12px; background: var(--lime); border-radius: 22px; padding: 14px 16px; font-size: 14px; font-weight: 600; line-height: 1.35; }

/* ───────── Inner pages: Privacy, Terms, Contact ───────── */
.page-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 600; }
.page-nav a { text-decoration: none; color: var(--text-2); }
.page-nav a:hover { color: var(--ink); }
.page-nav a[aria-current="page"] { color: var(--ink); padding-bottom: 2px; border-bottom: 2px solid var(--ink); }
.page-hero { padding-top: 40px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.04em; }
.page-hero h1 mark { background: var(--lime); color: inherit; border-radius: 0.18em; padding: 0 0.12em; }
.page-hero p { margin: 0; max-width: 680px; font-size: 20px; line-height: 1.5; color: var(--text-2); }
.page-body { padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }

.legal-aside { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) { .legal-aside { position: sticky; top: 24px; } }
.short { background: var(--lime); border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.short h2 { font-size: 22px; letter-spacing: 0; line-height: 1.2; }
.short ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.45; font-weight: 500; }
.short li { display: flex; gap: 12px; align-items: flex-start; }
.short li svg { margin-top: 1px; }
.toc { background: var(--white); border-radius: 24px; padding: 22px 26px; }
.toc h2 { margin: 0 0 12px; font-family: var(--body); font-size: 13px; font-weight: 700; color: var(--text-3); letter-spacing: 0; line-height: 1.3; }
.toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.toc a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text-2); }
.toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.legal { flex: 999 1 560px; min-width: 0; max-width: 760px; background: var(--white); border-radius: 32px; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 36px; }
.legal section { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; scroll-margin-top: 24px; }
.legal h2 { font-weight: 700; font-size: 28px; letter-spacing: -0.5px; line-height: 1.15; }
.legal h2 .n { color: #8A8A83; margin-right: 10px; }
.legal p, .legal ul { margin: 0; font-size: 17px; line-height: 1.65; color: #34342F; }
.legal ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

/* Contact */
.contact-card { flex: 999 1 560px; min-width: 0; background: var(--white); border-radius: 32px; padding: clamp(28px, 4vw, 48px); }
.form { display: flex; flex-direction: column; gap: 20px; }
.form h2, .sent h2 { font-size: 30px; letter-spacing: -0.5px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .form legend { font-size: 14px; font-weight: 600; }
.field input, .field textarea { box-sizing: border-box; border: 1.5px solid var(--rule); border-radius: 16px; background: var(--bg); padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); }
.field input { height: 52px; }
.field textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field-error { font-size: 13px; color: #B3261E; font-weight: 600; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B3261E; }
.form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.form legend { margin-bottom: 10px; padding: 0; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics button { height: 44px; padding: 0 18px; border-radius: 22px; border: 1.5px solid var(--rule); background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.topics button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-foot small { font-size: 13px; color: var(--text-3); max-width: 380px; line-height: 1.45; }
.btn-send { height: 56px; padding: 0 30px; border-radius: 28px; border: 0; background: var(--ink); color: var(--white); font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.btn-send:hover { background: #000; }
.sent { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0; }
.sent p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.sent-icon { width: 64px; height: 64px; border-radius: 32px; background: var(--lime); display: flex; align-items: center; justify-content: center; }
.btn-ghost { height: 48px; padding: 0 22px; border-radius: 24px; border: 1.5px solid var(--rule); background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.contact-aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.c-card { background: var(--white); border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.c-card h2 { font-weight: 700; font-size: 22px; letter-spacing: 0; line-height: 1.2; }
.c-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-3); }
.c-card a.mail { font-size: 17px; font-weight: 600; }
.c-card-dark { background: var(--ink); color: var(--white); }
.c-card-dark h2 { margin-top: 6px; }
.c-card-dark a.mail { color: var(--lime); }
.c-card-dark p { color: var(--grey-dark); }
.c-icon { width: 48px; height: 48px; border-radius: 15px; background: var(--lime); display: flex; align-items: center; justify-content: center; }
.c-link { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; }
.c-link span { display: flex; flex-direction: column; gap: 6px; }
.c-link b { font-family: var(--display); font-weight: 700; font-size: 22px; }
.c-link small { font-size: 14px; color: var(--text-3); }
.c-link:hover { outline: 1.5px solid var(--ink); outline-offset: -1.5px; }
.page-body-tight { gap: 24px; }
[hidden] { display: none !important; }
