/* PRYAMO — matched directly to the live betobalance.com (Astra + Elementor):
   teal #1dbfc1 (--ast-global-color-0/1), tint #effafa (-4), ink #000/#3a3a3a
   (-2/-3), Heebo 500 headings + Roboto 300 body, 1200px container. Their
   buttons are TRANSPARENT PILLS with a 2px teal border that fill solid teal
   on hover (not solid-fill buttons) — carried over exactly. Their surfaces
   are flat: no box-shadow on cards/sections, radius near-zero except the
   fully-rounded buttons/pills. Shadow is used ONLY where it is functionally
   necessary (a floating modal/sheet needs depth to read as "above" the
   page) — never as a decoration on in-flow content. No neon / gradients /
   glassmorphism / blobs. */

:root{
  /* brand (exact values read from betobalance.com's live Astra globals) */
  --brand:#1dbfc1;          /* --ast-global-color-0 / -1 */
  --brand-ink:#128b8d;      /* darker teal for hover / links on white (ours; theirs reuses --brand) */
  --brand-050:#effafa;      /* --ast-global-color-4 */
  --brand-100:#dbf3f3;
  --accent-2:#bfd1ff;       /* --ast-global-color-8, used sparingly */

  /* neutrals, biased a hair toward teal */
  --bg:#ffffff;
  --surface:#f6fafa;
  --surface-2:#eef4f5;
  --ink:#16201f;            /* softened from their #000 */
  --ink-2:#3a3a3a;          /* --ast-global-color-3 */
  --muted:#5f7375;
  --line:#dddddd;           /* --ast-border-color */
  --line-2:#cfd9d9;

  --danger:#c0392b;
  --ok:#1f8a5b;

  --r:6px;                  /* cards — flat, near-square, matches their site */
  --r-sm:6px;                /* small surfaces */
  --r-xs:4px;               /* inputs */
  --r-pill:999px;           /* buttons/chips — theirs are fully-rounded pills */

  /* used ONLY on floating layers (modal, bottom sheet, mobile nav, sticky
     CTA) where depth is functional, never on in-flow cards/sections */
  --sh-sm:0 1px 2px rgba(22,32,31,.05);
  --sh:0 2px 10px -2px rgba(22,32,31,.12);
  --sh-lift:0 10px 28px -10px rgba(22,32,31,.20);

  --wrap:1200px;
  --gap:clamp(16px,3.5vw,28px);
  --ease:cubic-bezier(.22,.61,.36,1);
  --dur:220ms;

  --font-head:"Heebo","Helvetica Neue",Arial,"Noto Sans",system-ui,sans-serif;
  --font-body:"Roboto","Helvetica Neue",Arial,"Noto Sans",system-ui,-apple-system,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:var(--font-body);font-size:16px;line-height:1.6;font-weight:400;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
h1,h2,h3,h4{font-family:var(--font-head);font-weight:600;line-height:1.2;margin:0 0 .5em;color:var(--ink);text-wrap:balance;letter-spacing:-.005em}
h1{font-size:clamp(1.85rem,1.1rem + 3.2vw,2.9rem);line-height:1.14}
h2{font-size:clamp(1.35rem,1rem + 1.6vw,1.9rem)}
h3{font-size:clamp(1.05rem,1rem + .4vw,1.2rem)}
h4{font-size:1rem}
p{margin:0 0 1em;max-width:68ch}
a{color:var(--brand-ink);text-decoration:none}
a:hover{text-decoration:underline}
img,picture{max-width:100%;display:block}
strong{font-weight:600}
:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:4px}
.muted{color:var(--muted)}
.lead{font-size:1.12rem;color:var(--ink-2);max-width:60ch}

.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:clamp(16px,5vw,32px)}
.skip{position:absolute;left:-999px;top:0;background:var(--brand);color:#062b2b;padding:10px 16px;z-index:100;font-weight:600}
.skip:focus{left:0}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
  [data-reveal]{opacity:1!important;transform:none!important}
}

/* ---- scroll reveal + stagger ---- */
[data-reveal]{opacity:0;transform:translateY(14px);transition:opacity .5s var(--ease),transform .5s var(--ease)}
[data-reveal].is-in{opacity:1;transform:none}
[data-reveal-stagger] > *{opacity:0;transform:translateY(14px);transition:opacity .45s var(--ease),transform .45s var(--ease)}
[data-reveal-stagger].is-in > *{opacity:1;transform:none}
[data-reveal-stagger].is-in > *:nth-child(2){transition-delay:.05s}
[data-reveal-stagger].is-in > *:nth-child(3){transition-delay:.1s}
[data-reveal-stagger].is-in > *:nth-child(4){transition-delay:.15s}
[data-reveal-stagger].is-in > *:nth-child(5){transition-delay:.2s}
[data-reveal-stagger].is-in > *:nth-child(n+6){transition-delay:.24s}

/* ---- buttons ----
   Their actual button (.ast-button, live-audited): transparent fill, 2px
   solid teal border, teal text, weight 500, fully-rounded pill, and on
   hover/focus it FILLS solid teal with tint-coloured text. That exact
   pattern is the primary CTA here — not a solid-fill button. */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  min-height:46px;padding:12px 26px;border-radius:var(--r-pill);
  font:inherit;font-weight:500;cursor:pointer;border:2px solid transparent;
  text-decoration:none;transition:background var(--dur) var(--ease),border-color var(--dur) var(--ease),color var(--dur) var(--ease);
}
.btn:hover{text-decoration:none}
.btn-primary{background:transparent;color:var(--brand-ink);border-color:var(--brand)}
.btn-primary:hover,.btn-primary:focus-visible{background:var(--brand);border-color:var(--brand);color:var(--brand-050)}
.btn-secondary{background:transparent;color:var(--ink-2);border-color:var(--line-2)}
.btn-secondary:hover{border-color:var(--ink-2)}
.btn-ghost{background:transparent;color:var(--ink-2);border-color:var(--line)}
.btn-ghost:hover{background:var(--surface)}
.btn-lg{min-height:54px;padding:15px 34px;font-size:1.06rem}
.btn-block{display:flex;width:100%}
.link{color:var(--brand-ink);font-weight:600}
.link-reset{color:var(--muted);font-weight:500}

/* ---- header ----
   Their header is transparent with no border at all
   (.main-header-bar{background:none;border-bottom-width:0}). We keep a
   plain white ground (our pages don't sit under a hero image the way
   theirs does) but drop the border/blur — flat, like the rest of the site. */
.site-header{background:#fff;position:sticky;top:0;z-index:40}
.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:66px;gap:12px}
.brand{font-family:var(--font-head);font-weight:700;font-size:1.28rem;letter-spacing:.06em;color:var(--ink);text-transform:uppercase}
.brand:hover{text-decoration:none;color:var(--brand-ink)}
.nav{display:flex;align-items:center;gap:clamp(8px,2vw,22px);font-weight:600}
.nav a{color:var(--ink-2);padding:6px 2px}
.nav a:hover{color:var(--brand-ink);text-decoration:none}
/* The header's one primary action (vs. plain nav links): filled solid
   teal by default rather than the outline-then-fill pattern the rest of
   the site's buttons use (see the "buttons" block above) -- a deliberate,
   scoped exception so it reads as the header's main CTA at a glance.
   Dark ink text on the light-toned brand teal clears WCAG AA comfortably
   (~8:1); white text on this particular hue does not (~2.2:1), so default
   state stays dark -- hover already darkens to --brand-ink, where white
   text is the established pattern (.sticky-cta). */
.nav-cta{padding:10px 22px;border:2px solid var(--brand);border-radius:var(--r-pill);background:var(--brand);color:#04302f;font-weight:600;transition:background var(--dur) var(--ease),border-color var(--dur) var(--ease),color var(--dur) var(--ease)}
.nav-cta:hover{background:var(--brand-ink);border-color:var(--brand-ink);color:#fff}
.nav-cta:focus-visible{outline:3px solid var(--brand-ink);outline-offset:2px}
.nav-toggle{display:none;background:none;border:1px solid var(--line);border-radius:var(--r-xs);width:44px;height:44px;cursor:pointer;align-items:center;justify-content:center;color:var(--ink)}
.nav-toggle svg{width:22px;height:22px}
@media (max-width:640px){
  .nav{position:fixed;inset:66px 0 auto 0;flex-direction:column;align-items:stretch;gap:0;background:#fff;border-bottom:1px solid var(--line);padding:8px 16px 16px;transform:translateY(-8px);opacity:0;pointer-events:none;transition:opacity .2s var(--ease),transform .2s var(--ease);box-shadow:var(--sh)}
  .nav.is-open{opacity:1;transform:none;pointer-events:auto}
  .nav a{padding:13px 4px;border-bottom:1px solid var(--line)}
  .nav a:last-child{border-bottom:0}
  .nav-cta{text-align:center;margin-top:10px;border-radius:var(--r-sm)}
  .nav-toggle{display:inline-flex}
}

/* ---- footer ---- (theirs is plain white, not tinted — --ast-global-color-5) */
.site-footer{border-top:1px solid var(--line);background:#fff;margin-top:72px}
.footer-inner{padding-block:34px;display:grid;gap:28px}
.footer-summary{display:flex;flex-wrap:wrap;gap:14px 30px;align-items:center;justify-content:space-between;min-width:0}
.footer-nav{display:flex;flex-wrap:wrap;gap:14px 22px}
.footer-nav a,.footer-link-button,.footer-copy,.footer-brand{color:var(--muted);font-size:.95rem}
.footer-link-button{font:inherit;background:none;border:0;padding:0;cursor:pointer;text-align:left}
.footer-link-button:hover{text-decoration:underline}
.footer-brand{max-width:46ch}
.footer-operator{width:100%;display:flex;flex-wrap:wrap;gap:8px 22px;color:var(--muted);font-size:.88rem}
.footer-operator p{margin:0;overflow-wrap:anywhere}

/* ---- optional analytics/advertising consent ---- */
.cookie-consent{
  position:fixed;z-index:90;left:max(12px,env(safe-area-inset-left));
  right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));
  margin-inline:auto;max-width:760px;display:flex;align-items:center;gap:18px;
  padding:16px 18px;background:#fff;border:1px solid var(--line-2);
  border-radius:var(--r);box-shadow:var(--sh-lift)
}
.cookie-consent[hidden]{display:none}
.cookie-consent-copy{min-width:0;flex:1}
.cookie-consent h2{font-size:1.05rem;margin:0 0 4px}
.cookie-consent p{font-size:.9rem;line-height:1.45;margin:0;max-width:none;color:var(--ink-2)}
.cookie-consent-actions{display:flex;gap:8px;flex:none}
.cookie-consent-actions .btn{min-height:44px;padding:9px 16px;white-space:nowrap}
@media (max-width:620px){
  .cookie-consent{align-items:stretch;flex-direction:column;gap:12px;padding:14px}
  .cookie-consent-actions{display:grid;grid-template-columns:1fr 1fr}
  .cookie-consent-actions .btn{width:100%}
}
@media (max-width:340px){.cookie-consent-actions{grid-template-columns:1fr}}

/* ---- hero ---- */
/* solid tint, not a gradient — matches the flat #EFFAFA section backgrounds
   used across betobalance.com (no gradient fades on their site) */
.hero{background:var(--brand-050);padding-block:clamp(44px,8vw,88px)}
.hero h1{max-width:17ch}
.hero-sub{font-size:1.16rem;color:var(--ink-2);max-width:52ch}
.hero-ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.quick-pick{margin-top:30px}
.quick-pick-label{font-weight:700;margin-bottom:12px;font-family:var(--font-head)}
.quick-pick-grid{display:flex;flex-wrap:wrap;gap:10px}
.pill{
  min-height:44px;padding:10px 18px;border-radius:var(--r-pill);
  background:#fff;border:1px solid var(--line-2);color:var(--ink-2);
  font:inherit;font-weight:600;cursor:pointer;transition:border-color var(--dur) var(--ease),color var(--dur) var(--ease),background var(--dur) var(--ease)
}
.pill:hover{border-color:var(--brand);color:var(--brand-ink);background:var(--brand-050)}

/* ---- sections ---- */
.how,.featured,.values,.faq,.b2b,.b2b-hero{padding-block:clamp(38px,6vw,64px)}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:20px}
.how-steps{list-style:none;margin:0;padding:0;display:grid;gap:16px;grid-template-columns:1fr}
.how-steps li{display:flex;gap:14px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:20px}
.how-n{flex:none;width:34px;height:34px;border-radius:50%;background:var(--brand);color:#04302f;display:grid;place-items:center;font-weight:700;font-family:var(--font-head)}
.how-steps p{margin:0}
@media (min-width:720px){.how-steps{grid-template-columns:repeat(3,1fr)}}

.values-grid{display:grid;gap:16px;grid-template-columns:1fr}
.value{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:22px}
.value h3{margin-bottom:.35em}
.value p{margin:0;color:var(--muted)}
@media (min-width:760px){.values-grid{grid-template-columns:repeat(3,1fr)}}

.faq details{border:1px solid var(--line);border-radius:var(--r-sm);padding:0;margin-bottom:10px;background:#fff;overflow:hidden}
.faq summary{font-weight:600;cursor:pointer;padding:15px 16px;list-style:none;position:relative;font-family:var(--font-head)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:16px;top:14px;font-size:1.2rem;color:var(--brand-ink);transition:transform var(--dur) var(--ease)}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{margin:0;padding:0 16px 16px;color:var(--ink-2)}

/* ---- cards grid ----
   Mobile-first: 2 compact columns on every phone (320px+), 3 columns from
   900px. minmax(0,1fr) so a long unbreakable Ukrainian word can never blow
   the grid out. The catalog results sit next to a 294px sidebar from 960px
   up, so they stay 2-up until there is real room (1200px). */
.cards-grid{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:440px){.cards-grid{gap:14px}}
@media (min-width:640px){.cards-grid{gap:18px}}
@media (min-width:900px){.cards-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap)}}
@media (min-width:960px) and (max-width:1199px){.results-col .cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;height:100%;transition:border-color var(--dur) var(--ease)}
.card:hover{border-color:var(--brand)}
/* placeholder + real photo occupy the exact same box (4:5, same radius via
   the card's own overflow:hidden), so a photo-less card never shifts the grid */
.card-photo{display:block;aspect-ratio:4/5;background:var(--brand-050);overflow:hidden}
.card-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s var(--ease)}
.card:hover .card-photo img{transform:scale(1.03)}
@media (prefers-reduced-motion:reduce){.card:hover .card-photo img{transform:none}}
.card-body{padding:12px 12px 14px;display:flex;flex-direction:column;gap:6px;flex:1}
.card-name{margin:0;font-size:1rem;line-height:1.25;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-name a{color:var(--ink)}
.card-name a:hover{color:var(--brand-ink);text-decoration:none}
.card-title{margin:0;color:var(--muted);font-size:.82rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-headline{margin:0;color:var(--ink-2);font-size:.86rem;line-height:1.35;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-exp{margin:0;color:var(--ink-2);font-size:.82rem;font-weight:500}
.chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.chip{background:var(--brand-050);color:var(--brand-ink);border-radius:var(--r-pill);padding:3px 9px;font-size:.76rem;font-weight:600;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-chips{margin:2px 0 0;max-height:2.1rem;overflow:hidden}
.card-facts{display:none}
.card-price{margin:2px 0 0;color:var(--ink);font-size:.88rem;line-height:1.3;font-weight:700;overflow-wrap:anywhere}
.card-note{margin:0;color:var(--danger);font-size:.78rem}
.card-actions{margin-top:auto;padding-top:10px}
.card-actions .btn{width:100%;min-height:40px;padding:9px 14px;font-size:.9rem}

@media (min-width:900px){
  .card-body{padding:16px 16px 18px;gap:8px}
  .card-name{font-size:1.12rem}
  .card-title{font-size:.9rem}
  .card-headline{font-size:1rem}
  .card-exp{font-size:.9rem}
  .chip{padding:4px 11px;font-size:.82rem}
  .card-chips{max-height:none}
  .card-facts{display:grid;gap:3px;font-size:.9rem;margin:2px 0 0}
  .card-facts div{display:flex;gap:8px}
  .card-facts dt{color:var(--muted);min-width:58px;flex:none}
  .card-facts dd{margin:0;color:var(--ink-2)}
  .card-price{font-size:1rem}
  .card-actions .btn{min-height:46px;padding:12px 22px;font-size:1rem}
}

/* ---- catalog ---- */
.catalog{padding-block:clamp(24px,5vw,44px)}
.catalog-head{margin-bottom:18px}
.catalog-sub{color:var(--muted);margin:0}
.filters-toggle{margin-bottom:16px;width:100%}
.catalog-layout{display:grid;gap:var(--gap);grid-template-columns:1fr}
@media (min-width:960px){
  .catalog-layout{grid-template-columns:294px 1fr;align-items:start}
  .filters-toggle{display:none}
}
.filters-panel{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:18px}
@media (min-width:960px){.filters-panel{position:sticky;top:84px;max-height:calc(100vh - 104px);overflow:auto}}
.filters-sheet-head,.filters-sheet-foot{display:none}
.filters-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:10px}
.filters-head h2{margin:0;font-size:1.1rem}
.fgroup{border:0;padding:0;margin:0 0 18px}
.fgroup legend{font-weight:700;font-size:.9rem;margin-bottom:8px;color:var(--ink);font-family:var(--font-head)}
.fopt{display:flex;align-items:center;gap:9px;padding:7px 0;font-size:.93rem;cursor:pointer;min-height:38px}
.fopt input{width:18px;height:18px;flex:none;accent-color:var(--brand)}
.fopt span:first-of-type{flex:1}
.fcount{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.85rem}
.fopt.is-empty{opacity:.42;cursor:not-allowed}
.fgroup input[type=text],.fgroup input[type=number],.fgroup select{
  width:100%;min-height:44px;padding:9px 12px;border:1px solid var(--line-2);border-radius:var(--r-xs);font:inherit
}
.fhint{font-size:.8rem;color:var(--muted);margin:6px 0 0}
.active-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.active-chip{display:inline-flex;align-items:center;gap:6px;background:var(--brand-050);color:var(--brand-ink);border:1px solid var(--brand-100);border-radius:var(--r-pill);padding:5px 6px 5px 12px;font-size:.85rem;font-weight:600}
.active-chip button{background:none;border:0;cursor:pointer;font-size:1rem;line-height:1;color:var(--brand-ink);padding:0 4px}

.results-count{font-weight:700;margin:0 0 16px;font-family:var(--font-head)}
.results-col{min-width:0}
#results{transition:opacity var(--dur) var(--ease)}
#results.is-loading{opacity:.45;pointer-events:none}
.results-error{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:12px 14px;border:1px solid #efc2bc;border-radius:var(--r-sm);background:#fff7f5;color:#7d2c22;font-size:.92rem}
.results-error .btn{flex:none;min-height:42px;padding:8px 16px}
@media (max-width:420px){.results-error{align-items:stretch;flex-direction:column}.results-error .btn{width:100%}}
.empty{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:30px;text-align:center}
.empty p{color:var(--ink-2)}
.pager{display:flex;flex-wrap:wrap;align-items:center;gap:12px;justify-content:center;margin-top:28px}
.pager-info{color:var(--muted);font-size:.9rem}

/* skeleton */
.skeleton-grid{display:grid;gap:var(--gap);grid-template-columns:1fr}
@media (min-width:560px){.skeleton-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1000px){.skeleton-grid{grid-template-columns:repeat(3,1fr)}}
.skel-card{border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:#fff}
.skel-photo{aspect-ratio:4/5;background:linear-gradient(100deg,var(--surface-2) 30%,#f6fafa 50%,var(--surface-2) 70%);background-size:200% 100%;animation:shimmer 1.3s linear infinite}
.skel-line{height:12px;margin:12px 16px;border-radius:6px;background:var(--surface-2)}
.skel-line.short{width:55%}
@keyframes shimmer{to{background-position:-200% 0}}

/* ---- bottom sheet (mobile filters + lead) ---- */
.sheet-backdrop{position:fixed;inset:0;background:rgba(16,32,31,.42);z-index:50;opacity:0;transition:opacity var(--dur) var(--ease)}
.sheet-backdrop.is-shown{opacity:1}
@media (max-width:959px){
  .filters-panel{
    position:fixed;left:0;right:0;bottom:0;z-index:60;max-height:88vh;overflow:auto;
    border-radius:var(--r) var(--r) 0 0;transform:translateY(101%);transition:transform .26s var(--ease);
    padding-bottom:calc(84px + env(safe-area-inset-bottom))
  }
  .filters-panel.is-open{transform:translateY(0)}
  .filters-sheet-head{display:flex;align-items:center;justify-content:space-between;font-weight:700;margin-bottom:12px;font-family:var(--font-head)}
  .sheet-close{background:none;border:0;font-size:1.4rem;line-height:1;padding:8px;cursor:pointer;color:var(--muted);min-width:44px;min-height:44px}
  .filters-sheet-foot{display:block;position:sticky;bottom:0;background:#fff;padding-top:12px;margin-top:8px;border-top:1px solid var(--line)}
}

/* ---- profile ---- */
.profile{padding-block:clamp(20px,4vw,40px)}
.crumbs{font-size:.9rem;color:var(--muted);margin-bottom:16px}
.crumbs a{color:var(--muted)}
.crumbs span{margin:0 6px}
.profile-layout{display:grid;gap:var(--gap);grid-template-columns:1fr}
@media (min-width:900px){.profile-layout{grid-template-columns:minmax(0,1fr) 312px;align-items:start}}
.profile-hero{display:grid;gap:22px;grid-template-columns:1fr;margin-bottom:8px}
@media (min-width:520px){.profile-hero{grid-template-columns:230px 1fr}}
.profile-photo{aspect-ratio:4/5;border-radius:var(--r);overflow:hidden;background:var(--brand-050);border:1px solid var(--line)}
.profile-photo img{width:100%;height:100%;object-fit:cover;display:block}
.profile-title{color:var(--muted);margin:.15em 0 .45em;font-size:1.06rem}
.profile-verified{display:inline-flex;align-items:center;gap:7px;margin:0 0 .75em;padding:5px 10px;border-radius:var(--r-pill);background:var(--brand-050);color:var(--brand-ink);font-size:.86rem;font-weight:600}
.profile-verified span{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--brand);color:#04302f;font-weight:700}
.profile-headline{font-size:1.12rem;color:var(--ink-2)}
.profile-contacts{margin:12px 0 0}
.contact-heading{margin:0 0 6px;font-weight:600;font-size:.95rem;color:var(--ink-2)}
.contact-cta-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.contact-btn{gap:8px}
.contact-ic{font-size:1em;line-height:1}
.contact-note{width:100%;margin:6px 0 0;font-size:.85rem;color:var(--muted)}
.contact-guidance{width:100%;margin:7px 0 0;font-size:.86rem;line-height:1.45;color:var(--muted)}
.contact-copy{color:var(--ink-2);user-select:all;-webkit-user-select:all}
.aside-contacts{margin-top:8px}
.profile-quick{margin:18px 0 0;display:grid;gap:7px;font-size:.95rem}
.profile-quick div{display:flex;gap:8px}
.profile-quick dt{color:var(--muted);min-width:104px;flex:none}
.profile-quick dd{margin:0}
.pblock{border-top:1px solid var(--line);padding-top:24px;margin-top:24px}
.pblock:first-of-type{border-top:0;margin-top:12px}
.profile-about-text{white-space:pre-line;overflow-wrap:anywhere}
.services{width:100%;border-collapse:collapse}
.services th,.services td{text-align:left;padding:11px 8px;border-bottom:1px solid var(--line);vertical-align:top}
.services tr:last-child th,.services tr:last-child td{border-bottom:0}
.services td:last-child{white-space:nowrap;font-weight:600}
.edu-list{margin:0;padding-left:18px;display:grid;gap:9px}
.edu-desc{display:block;color:var(--muted);font-size:.9rem;margin-top:2px}

.profile-aside .aside-card{position:sticky;top:84px;background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:20px}
@media (max-width:899px){.profile-aside{display:none}}
.aside-name{font-weight:700;margin:0;font-family:var(--font-head)}
.aside-title{color:var(--muted);margin:.2em 0 .55em}
.aside-price{font-weight:700;margin:0 0 14px}

.sticky-cta{
  position:fixed;left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:45;
  background:var(--brand);color:#04302f;text-align:center;padding:16px;border-radius:var(--r-sm);
  font-weight:700;box-shadow:var(--sh);opacity:0;transform:translateY(12px);
  /* invisible (opacity:0) but still a fixed z-index:45 layer over the
     bottom of the viewport — it must not swallow taps until it is shown */
  pointer-events:none;transition:opacity var(--dur) var(--ease),transform var(--dur) var(--ease)
}
.sticky-cta.is-shown{opacity:1;transform:none;pointer-events:auto}
.sticky-cta:hover{text-decoration:none;background:var(--brand-ink);color:#fff}
@media (min-width:900px){.sticky-cta{display:none}}

/* ---- docs / static ---- */
.doc{padding-block:clamp(28px,5vw,52px);max-width:760px}
.doc h2{margin-top:1.6em}
.doc ul{padding-left:20px}
.doc li{margin:.4em 0}
.legal-doc{overflow-wrap:anywhere}
.legal-doc h1{font-size:clamp(1.55rem,4.5vw,2.4rem);line-height:1.18}
.legal-doc h2{font-size:clamp(1.14rem,3vw,1.45rem);line-height:1.3}
.legal-subtitle{font-weight:600;color:var(--ink-2)}
.legal-effective-date{color:var(--muted)}
@media (max-width:420px){
  .footer-nav{display:grid;gap:10px}
  .footer-summary{align-items:flex-start}
}
.b2b-hero{background:linear-gradient(180deg,var(--brand-050),#fff 80%);border-bottom:1px solid var(--line)}
.b2b-list{padding-left:20px}
.b2b-list li{margin:.5em 0}
.notfound{padding-block:clamp(48px,10vw,96px);text-align:center}

/* ---- psychologist web cabinet (ЭТАП 1) ---------------------------------
   Same teal/Heebo/Roboto system as the public site; calm flat panels, one
   column on mobile, comfortable touch targets, no horizontal scroll. */
.cab{padding-block:clamp(20px,4vw,40px);max-width:820px}
.cab-empty{padding-block:clamp(40px,9vw,90px);display:flex;justify-content:center}
.cab-head{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin-bottom:6px}
.cab-back{color:var(--muted);font-weight:600}
.cab-panel{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:20px;max-width:560px}
.cab-grid{display:grid;gap:16px;grid-template-columns:1fr;margin:18px 0}
@media (min-width:640px){.cab-grid{grid-template-columns:1fr 1fr}}
.cab-grid .cab-panel{max-width:none}
.cab-status{font-family:var(--font-head);font-weight:700;font-size:1.15rem;margin:.2em 0}
.cab-status--changes_requested,.cab-status--rejected,.cab-status--payment_required{color:var(--danger)}
.cab-status--active_trial,.cab-status--active_paid{color:var(--ok)}
.cab-comment{background:var(--brand-050);border-radius:var(--r-sm);padding:10px 12px;color:var(--ink-2);margin:.4em 0 0}
.cab-status-hint{color:var(--muted);margin:.2em 0 .6em;font-size:.95rem}
.cab-flash{background:var(--brand-050);border:1px solid var(--brand-100);border-radius:var(--r-sm);padding:11px 14px;color:var(--brand-ink);margin:0 0 16px}
.cab-err{background:#fdecea;border:1px solid #f5c6cb;border-radius:var(--r-sm);padding:11px 14px;color:var(--danger);margin:0 0 16px}
.cab-actions{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}
.cab-actions form{margin:0}
.cab-note{margin-top:26px}

.cab-form{margin:0}
.cab-form--danger{margin-top:14px}
.cab-form fieldset{border:0;padding:0;margin:0}
.cab-section{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:18px;margin:16px 0}
.cab-section h2{font-size:1.1rem;margin:0 0 12px}
.cab-field{display:grid;gap:6px;margin:0 0 14px}
.cab-field > span{font-weight:600;font-size:.92rem}
.cab-field input,.cab-field select,.cab-field textarea,.cab-row input,.cab-row select{
  width:100%;min-height:46px;padding:11px 12px;border:1px solid var(--line-2);
  border-radius:var(--r-xs);font:inherit;background:#fff
}
.cab-field textarea{min-height:96px;resize:vertical}
.cab-field input:focus,.cab-field select:focus,.cab-field textarea:focus,.cab-row input:focus{border-color:var(--brand);outline:none}
.cab-fielderr{color:var(--danger);font-size:.84rem}
.cab-check{display:flex;gap:10px;align-items:flex-start;font-size:.93rem;padding:6px 0;min-height:36px}
.cab-check input{width:18px;height:18px;margin-top:2px;flex:none;accent-color:var(--brand)}
.cab-checks{display:grid;gap:2px;grid-template-columns:1fr;margin-bottom:10px}
@media (min-width:560px){.cab-checks{grid-template-columns:1fr 1fr}}
.cab-row{display:grid;gap:8px;grid-template-columns:1fr;margin:0 0 12px;padding:0 0 12px;border-bottom:1px solid var(--line)}
.cab-row:last-child{border-bottom:0}
@media (min-width:640px){
  .cab-row{grid-template-columns:repeat(5,1fr);align-items:start}
  .cab-row .cab-fielderr{grid-column:1/-1}
}
.cab-save{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 40%);padding:14px 0 8px}
.cab-photo-preview{aspect-ratio:4/5;max-width:280px;border-radius:var(--r);overflow:hidden;background:var(--brand-050);border:1px solid var(--line);margin:0 0 16px}
.cab-photo-preview img{width:100%;height:100%;object-fit:cover;display:block}
.cab-photo-preview.is-placeholder{display:grid;place-items:center;color:var(--muted);font-size:.9rem}

/* ---- private PRYAMO messaging ---- */
.messages-shell{padding-block:clamp(18px,4vw,40px);max-width:1040px}
.messages-page-head,.chat-head{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.messages-page-head{justify-content:space-between}
.messages-logout{margin:0}
.messages-head-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.messages-page-head h1,.chat-head h1{margin:0}
.chat-head h1{font-size:clamp(1.25rem,4vw,1.8rem)}
.chat-back{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid var(--line-2);border-radius:50%;font-size:1.35rem;color:var(--ink)}
.chat-back:hover{text-decoration:none;border-color:var(--brand)}
.conversation-list{display:grid;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:#fff}
.conversation-row{display:flex;align-items:center;gap:12px;min-height:76px;padding:14px 16px;border-bottom:1px solid var(--line);color:var(--ink)}
.conversation-row:last-child{border-bottom:0}
.conversation-row:hover{background:var(--brand-050);text-decoration:none}
.conversation-row.is-unread{background:#f5ffff}
.conversation-main{display:grid;gap:4px;min-width:0;flex:1}
.conversation-preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:.9rem}
.unread-badge{display:grid;place-items:center;min-width:26px;height:26px;padding:0 7px;border-radius:14px;background:var(--brand);color:#04302f;font-size:.8rem;font-weight:700}
.message-empty{max-width:none;text-align:center;padding:clamp(28px,7vw,56px)}
.message-login-card{max-width:600px}
.chat-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.older-link{display:block;padding:12px;text-align:center;background:#fff;border-bottom:1px solid var(--line);font-size:.9rem}
.message-list{list-style:none;margin:0;padding:18px;display:flex;flex-direction:column;gap:10px;min-height:240px;max-height:58vh;overflow:auto}
.message-bubble{align-self:flex-start;max-width:min(78%,620px);padding:10px 12px;border:1px solid var(--line);border-radius:4px var(--r-sm) var(--r-sm) var(--r-sm);background:#fff;overflow-wrap:anywhere}
.message-bubble.is-own{align-self:flex-end;background:var(--brand-050);border-color:var(--brand-100);border-radius:var(--r-sm) 4px var(--r-sm) var(--r-sm)}
.message-bubble p{margin:0;color:var(--ink);white-space:pre-wrap}
.message-bubble time{display:block;margin-top:5px;color:var(--muted);font-size:.72rem;text-align:right}
.message-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;padding:14px;background:#fff;border-top:1px solid var(--line)}
.message-composer label[for="message-body"]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.message-composer textarea{width:100%;min-height:48px;max-height:160px;resize:vertical;padding:11px 12px;border:1px solid var(--line-2);border-radius:var(--r-sm);font:inherit}
.message-composer .btn{min-height:48px}
.message-blocked{margin:0;padding:16px;text-align:center;background:#fff;color:var(--muted);border-top:1px solid var(--line)}
.message-access-note{margin:0 0 14px;padding:12px 14px;border:1px solid var(--brand-100);border-radius:var(--r-sm);background:var(--brand-050);color:var(--ink)}
.consultation-request{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:16px 0 0;padding:14px;border:1px solid var(--line);border-radius:var(--r-sm);background:#fff}
.consultation-request p{margin:0}
.message-safety{margin-top:16px;border:1px solid var(--line);border-radius:var(--r-sm);padding:12px 14px;background:#fff}
.message-safety summary{cursor:pointer;font-weight:600}
.message-safety-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.message-safety-actions form{margin:0}
.lead-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:18px}
.lead-stat-card{display:grid;align-content:space-between;gap:18px;min-height:132px;padding:16px;border:1px solid var(--line);border-radius:var(--r-sm);background:#fff}
.lead-stat-card span{color:var(--muted);font-size:.9rem}
.lead-stat-card strong{font-family:var(--font-head);font-size:clamp(1.8rem,5vw,2.6rem);line-height:1;color:var(--ink)}
.lead-tariffs{max-width:none}
.lead-tariffs h2{margin-top:0}
.lead-testing-badge{display:inline-flex;margin:.4em 0;padding:7px 10px;border-radius:999px;background:var(--brand-050);font-weight:700;color:var(--ink)}
@media (max-width:820px){.lead-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){
  .messages-shell{padding-inline:0;padding-top:12px}
  .messages-page-head,.chat-head{padding-inline:14px}
  .messages-page-head{align-items:flex-start;flex-wrap:wrap}
  .conversation-list,.chat-panel{border-inline:0;border-radius:0}
  .message-list{min-height:calc(100vh - 390px);max-height:55vh;padding:14px 10px}
  .message-bubble{max-width:88%}
  .message-composer{grid-template-columns:1fr;padding:10px}
  .message-composer .btn{width:100%}
  .messages-head-actions{width:100%;justify-content:space-between}
  .consultation-request{align-items:stretch;flex-direction:column;margin-inline:10px}
  .consultation-request .btn{width:100%}
  .message-safety{margin-inline:10px}
  .message-access-note{margin-inline:10px}
  .lead-stat-grid{grid-template-columns:1fr;padding-inline:10px}
  .lead-stat-card{min-height:104px}
  .lead-tariffs{margin-inline:10px}
}
/* PRYAMO marketplace v2: isolated to new sections, mobile-first */
.pryamo-marketplace-shell{max-width:980px;margin:48px auto 80px;min-height:42vh}
.marketplace-kicker{display:inline-block;color:#138e91;font-weight:700;letter-spacing:.1em;text-transform:uppercase;font-size:.72rem;margin-bottom:12px}
.pryamo-marketplace-shell h1{font-size:clamp(1.85rem,4vw,3.1rem);line-height:1.12;margin:0 0 15px}
.pryamo-marketplace-shell header p{color:#566c78;max-width:640px}
.marketplace-form{display:grid;gap:14px;max-width:540px;margin:30px 0;padding:30px;border:1px solid #dbe7e6;border-radius:24px;background:#fff;box-shadow:0 12px 28px rgba(24,56,69,.04)}
.marketplace-form input:not([type=radio]),.marketplace-form select{height:50px;padding:11px 15px;border:1px solid #c8dadb;border-radius:12px;background:#fff;font:inherit;min-width:0}
.marketplace-form fieldset{display:flex;gap:24px;flex-wrap:wrap;border:0;padding:0;margin:8px 0}
.marketplace-form legend{font-weight:650;margin-bottom:11px}.marketplace-form label{font-weight:600}
.marketplace-form fieldset label{font-weight:400}.marketplace-head{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.marketplace-feed{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px;margin-top:26px}
.marketplace-lead-card{padding:24px;border:1px solid #d9e6e5;border-radius:20px;background:#fff}
.marketplace-lead-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:.88rem}.marketplace-lead-card-head span{color:#55727a}
.marketplace-lead-card dl{margin:20px 0}.marketplace-lead-card dl>div{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid #edf3f2}.marketplace-lead-card dt{color:#59727e}.marketplace-lead-card dd{margin:0;font-weight:700}
.wallet-balance{display:grid;gap:5px;padding:26px;background:#ecfaf9;border-radius:20px;max-width:540px;margin-top:22px}.wallet-balance strong{font-size:2.6rem}
.wallet-table-wrap{overflow-x:auto}.wallet-table{width:100%;border-collapse:collapse;text-align:left;min-width:540px}.wallet-table th,.wallet-table td{padding:14px 8px;border-bottom:1px solid #dce8e8}.wallet-table .credit{color:#167d62}
@media(max-width:600px){.pryamo-marketplace-shell{margin:28px auto 48px;padding:0 16px}.marketplace-form{padding:18px}.wallet-balance strong{font-size:2.1rem}}

.marketplace-consent-dialog{max-width:min(560px,calc(100vw - 32px));border:1px solid #dcebea;border-radius:24px;padding:32px;box-shadow:0 28px 80px rgba(10,42,54,.19)}
.marketplace-consent-dialog::backdrop{background:rgba(9,34,45,.5)}
.marketplace-consent-dialog h2{margin:0 0 15px;font-size:1.55rem}
.marketplace-dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:24px}

/* Lead-sharing consent: keep the checkbox visible and put disclosure below the composer. */
.message-composer--consent{grid-template-columns:minmax(0,1fr)}
.message-composer--consent > textarea,
.message-composer--consent > .marketplace-share-consent,
.message-composer--consent > .btn{grid-column:1/-1}
.message-composer .marketplace-share-consent{max-width:none;display:grid;gap:12px;padding:16px}
.message-composer .marketplace-share-label{
  position:static;width:auto;height:auto;overflow:visible;clip:auto;
  display:flex;align-items:flex-start;gap:10px;cursor:pointer;
  font-size:.95rem;line-height:1.45;font-weight:500
}
.message-composer .marketplace-share-label input[type=checkbox]{
  flex:none;width:20px;height:20px;margin:2px 0 0;accent-color:var(--brand)
}
.message-composer--consent > .btn{justify-self:start;width:min(100%,330px)}
@media(max-width:520px){.message-composer--consent > .btn{width:100%}}


/* PRYAMO_CHAT_UI_V1 — scoped visual-only messenger refresh */
.messages-shell{--chat-radius:16px}
.messages-page-head{align-items:flex-start;gap:18px}
.messages-page-head h1{font-size:clamp(1.45rem,3vw,2.05rem);letter-spacing:-.02em}
.conversation-list{border-radius:var(--chat-radius);border-color:var(--line-2)}
.conversation-row{gap:15px;padding:16px 18px;min-height:91px;transition:background .16s ease}
.conversation-row.is-unread{background:var(--brand-050)}
.conversation-row:focus-visible{outline-offset:-4px}
.conversation-avatar,.chat-head-avatar{
  display:grid;place-items:center;position:relative;flex:none;width:58px;height:58px;
  border-radius:50%;overflow:hidden;background:var(--brand-100);color:#116b6d;
  border:1px solid #bcdcdc;font:700 1rem var(--font-head);
}
.conversation-avatar img,.chat-head-avatar img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
}
.conversation-avatar-letter,.chat-head-avatar-letter{line-height:1;letter-spacing:.02em}
.conversation-topline{display:flex;gap:10px;align-items:baseline;justify-content:space-between;min-width:0}
.conversation-topline strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.02rem}
.conversation-at{flex:none;font-size:.72rem;color:var(--muted);font-variant-numeric:tabular-nums}
.conversation-preview{max-width:100%;font-size:.87rem;line-height:1.35}
.conversation-role{font-size:.73rem;color:var(--brand-ink);font-weight:600}
.unread-badge{min-width:25px;height:25px;font-size:.77rem;align-self:center}
.chat-head{margin-bottom:16px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.chat-head-avatar{width:56px;height:56px}
.chat-head-contact{min-width:0;flex:1}
.chat-head-contact h1{overflow-wrap:anywhere;margin-bottom:3px;line-height:1.15}
.chat-head-contact a{font-size:.86rem}
.chat-panel{border-radius:var(--chat-radius);background:#f3f8f8;border-color:var(--line-2)}
.message-list{padding:23px;gap:13px;max-height:65vh}
.message-bubble{padding:12px 15px;border-radius:16px 16px 16px 5px;border-color:#dce6e6;line-height:1.5;box-shadow:0 1px 1px rgba(0,0,0,.025)}
.message-bubble.is-own{border-radius:16px 16px 5px 16px;background:#dcf6f4;border-color:#c1e5e2}
.message-bubble time{margin-top:6px}
.message-composer{gap:12px;padding:15px}
.message-composer textarea{border-radius:14px;min-height:50px;resize:vertical;background:#fff}
.message-composer textarea:focus{outline:2px solid var(--brand);outline-offset:1px;border-color:var(--brand)}
.message-composer>.btn{min-width:145px}
@media(max-width:620px){
  .messages-page-head{padding-inline:16px}
  .conversation-list{border-radius:0;border-inline:0}
  .conversation-row{gap:12px;padding:13px 15px;min-height:84px}
  .conversation-avatar{width:51px;height:51px}
  .conversation-topline strong{font-size:.97rem}
  .conversation-at{font-size:.67rem}
  .chat-head{gap:10px;padding:0 14px 12px}
  .chat-head-avatar{width:47px;height:47px}
  .chat-head-contact h1{font-size:1.14rem}
  .chat-panel{border-radius:0;border-inline:0}
  .message-list{padding:14px 12px;max-height:58vh;gap:11px}
  .message-bubble{max-width:89%;padding:10px 12px}
  .message-composer{padding:12px;gap:10px}
  .message-composer>.btn{min-width:0}
}
@media(max-width:370px){
  .conversation-at{font-size:.61rem}
  .conversation-row{gap:9px;padding-inline:10px}
  .chat-head{gap:7px}
  .chat-head-avatar{width:43px;height:43px}
}
