/* Shared surfaces, typography and interaction for the public FinSvoboda portal. */
@font-face {
  font-family: "Fin Portal";
  src: url("/schuzka/inter-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fin Portal";
  src: url("/schuzka/inter-bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  --fs-font: "Fin Portal", Inter, "Helvetica Neue", Arial, sans-serif;
  --fs-ink: #242129;
  --fs-muted: #5e5763;
  --fs-paper: #f7f4ed;
  --fs-white: #fffefa;
  --fs-purple: #765997;
  --fs-deep: #59426d;
  --fs-lilac: #ece6f1;
  --fs-rule: #d6cfd7;
  --fs-grain: none;
  --portal-radius: 24px;
  --portal-inner: 15px;
  --portal-pill: 100vmax;
  --portal-gutter: clamp(1.1rem, 4.8vw, 4.5rem);
  --portal-ease: 180ms ease;
  --fs-shadow: 0 5px 16px -11px #42304849, inset 0 1px 0 #fff;
  --portal-glass-shadow: 0 25px 42px -25px #49375680, 0 4px 12px -7px #3e30475c;
  --portal-studio: radial-gradient(ellipse at 89% 25%, #e7dfee 0%, transparent 55%),
    linear-gradient(119deg, #fcfaf5 3%, #f7f4ee 58%, #efeaf2);
}
body[data-fin-page] { background-color: var(--fs-paper); font-family: var(--fs-font); }
.fs-mast, .fs-foot { background: #f9f7f1; }
.fs-mast-inner { min-height: 4.45rem; }
.fs-wide-nav { gap: clamp(.9rem, 2.1vw, 1.85rem); }
a.fs-wordmark, .fs-menu summary { min-height: 44px; }
.fs-mast a.fs-contact-link, .fs-editorial .fs-button, .biz .biz-primary {
  min-height: 46px;
  border-radius: var(--portal-pill);
  padding-inline: 1.28rem;
}
.fs-mast a.fs-contact-link, .fs-editorial .fs-button-dark, .biz .biz-primary:not(.biz-lime) {
  color: #fff; background: var(--fs-purple); border: 1px solid #654c80;
  box-shadow: inset 0 1px 0 #ffffff63, 0 5px 13px -7px #4c386c73;
}
.fs-editorial .fs-button-outline {
  color: var(--fs-deep); border-color: #bfb3c6; background: #fbf9f5;
}
.fs-menu nav { border-radius: var(--portal-inner); background: var(--fs-white); box-shadow: var(--portal-glass-shadow); }
.fs-menu a[aria-current], .fs-wide-nav a[aria-current] { color: var(--fs-deep); }
.fs-crumb { padding-block: .5rem 0; line-height: 1.35; }
.fs-crumb a, .fs-contact address a, .fs-offices a, .fs-foot-small a, .fs-route-phone {
  display: inline-flex; align-items: center; min-height: 44px;
}
.fs-crumb a { flex-shrink: 0; }
.fs-policy-note { box-sizing: border-box; border-radius: var(--portal-inner); }
.fs-foot { padding-block: 1.5rem 1rem; }
.fs-foot-small { margin-top: .7rem; padding-top: .65rem; }

/* Home and editorial photography */
.fs-cover, .fs-catalog-head { background: var(--portal-studio); }
.fs-cover::before, .fs-catalog-head::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  pointer-events: none; background: var(--fs-plan) right center / max(48rem, 72vw) auto no-repeat;
  opacity: .085; -webkit-mask-image: linear-gradient(100deg, transparent 23%, #000 95%);
  mask-image: linear-gradient(100deg, transparent 23%, #000 95%);
}
.fs-cover-grid {
  width: min(67rem, calc(100% - 2 * var(--portal-gutter)));
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
  grid-template-areas: "copy photo" "lead photo" "actions photo";
  grid-template-rows: auto auto auto; align-content: center;
  gap: 0 clamp(2rem, 5vw, 5.5rem);
  padding-block: clamp(2.5rem, 4vw, 4.75rem);
}
.fs-cover-copy { grid-area: copy; align-self: end; }
.fs-cover-copy h1 { font-size: clamp(3.8rem, 6.7vw, 5.9rem); line-height: 1.015; }
.fs-cover-copy h1 em { color: var(--fs-deep); white-space: normal; }
.fs-editorial .fs-byline {
  display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .68rem; margin: 0 0 1.05rem;
  color: var(--fs-muted); line-height: 1.35; font-size: .96rem;
}
.fs-byline strong { color: var(--fs-deep); }
.fs-byline span { border-inline-start: 1px solid #bdb0c5; padding-inline-start: .68rem; }
.fs-cover-grid > .fs-lead { grid-area: lead; align-self: center; max-width: 42ch; padding-top: 1.08rem; }
.fs-cover-grid > .fs-actions { grid-area: actions; align-self: start; margin-top: 1.55rem; }
.fs-glass-portrait {
  grid-area: photo; align-self: center; justify-self: center;
  position: relative; isolation: isolate; width: min(100%, 21.5rem);
  padding: clamp(4px, .54vw, 7px); border: 1px solid #d0c4d7;
  border-radius: var(--portal-radius); background: linear-gradient(143deg, #fff, #eee8f3 45%, #b19cc4);
  box-shadow: var(--portal-glass-shadow), inset 1px 1px 2px white, inset -1px -1px 1px #ab9cbd;
}
.fs-glass-portrait::before {
  content: ""; position: absolute; inset: 2px; z-index: -1;
  transform: translate(8px, 7px) rotate(2deg); border: 1px solid #c5b4ce; border-radius: inherit;
  background: linear-gradient(146deg, #f4eef7, #d7ccdf 69%, #b9a8cb);
  box-shadow: inset 1px 1px 1px white, 0 8px 15px -9px #5b466b70;
}
.fs-glass-portrait::after {
  content: ""; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, #fff, #ffffff88 42%, transparent 78%) 0 0 / 79% 2px no-repeat,
              linear-gradient(#fff, transparent) 0 0 / 1.5px 62% no-repeat;
}
.fs-glass-inner {
  overflow: hidden; isolation: isolate; border-radius: calc(var(--portal-radius) - 6px);
  border: 1px solid #c4b7cd; aspect-ratio: 9 / 10;
  background: radial-gradient(ellipse at 18% 13%, #faf7f3 3%, #eae4ed 62%, #d2c6dc);
}
.fs-glass-inner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; mix-blend-mode: multiply; }
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .fs-glass-portrait { background: linear-gradient(143deg, #fffffff5, #fffc 24%, #ede3f28a 57%, #ac94bfbd); border-color: #fffc; }
  .fs-glass-portrait::before {
    background: linear-gradient(146deg, #fff9, #d5c8dfab 69%, #b4a0c69c);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
}
.fs-proof { border: 0; padding: .15rem var(--portal-gutter) clamp(1.3rem, 3vw, 2.6rem); background: #f7f4ef; }
.fs-proof .fs-metrics {
  box-sizing: border-box; width: min(67rem, 100%); padding: clamp(1.1rem, 2vw, 1.65rem) clamp(1rem, 3.2vw, 2.6rem);
  border-radius: var(--portal-radius); background: #fbf9f5; border: 1px solid var(--fs-rule); box-shadow: var(--fs-shadow);
}
.fs-proof .fs-metrics dt { color: var(--fs-muted); }
.fs-topic-tabs button, .fs-editorial .fs-filter button { border-radius: var(--portal-inner); background: var(--fs-white); }
.fs-topic-tabs button[aria-pressed=true], .fs-filter button[aria-pressed=true] {
  background: var(--fs-lilac); color: var(--fs-deep); border-color: #9e8aaa; box-shadow: inset 0 1px 0 white;
}
.fs-topic-tabs button[aria-pressed=true] i { background: var(--fs-deep); border-color: var(--fs-deep); box-shadow: inset 0 0 0 2px var(--fs-lilac); }
.fs-topic-panel, .fs-message-sheet, .fs-process, .fs-meeting-note,
.fs-route-list, .fs-adviser, .fs-pick, .fs-tool-card {
  border-radius: var(--portal-radius); border-color: var(--fs-rule); box-shadow: var(--fs-shadow);
}
.fs-topic-panel, .fs-message-sheet, .fs-pick, .fs-tool-card { background: var(--fs-white); }
.fs-topic-panel::before, .fs-sample-print::before, .fs-sample-print::after, .fs-message-sheet::before { content: none; }
.fs-meeting-note, .fs-process { background: #f0ebf2; }
.fs-workbench { background: #f0ecef; }
.fs-about-photo, .fs-sample-print {
  position: relative; padding: 4px; border: 1px solid #d2c7d8;
  border-radius: var(--portal-radius); background: linear-gradient(135deg, #fff, #d4c7dd); transform: none;
  box-shadow: var(--portal-glass-shadow);
}
.fs-about-photo { justify-self: center; width: min(100%, 22rem); }
.fs-about-photo img { border-radius: calc(var(--portal-radius) - 5px); aspect-ratio: 6 / 5; object-position: 50% 42%; }
.fs-catalog-still { width: min(100%, 20rem); }
.fs-sample-print { width: 95%; }
.fs-sample-print img { border-radius: calc(var(--portal-radius) - 5px); aspect-ratio: 1.52; object-fit: cover; }
.fs-editorial .fs-filter button { border-radius: var(--portal-pill); min-height: 44px; padding-inline: 1.05rem; }
.fs-editorial .fs-filter button[aria-pressed=true] { background: var(--fs-deep); color: #fff; border-color: var(--fs-deep); }
.fs-tool-card .fs-tool-action { color: var(--fs-deep); text-decoration: none; }
.fs-object { background: #e9e2ec; overflow: hidden; }
.fs-object img { width: 100%; height: 100%; object-fit: cover; }
.fs-contact { background: radial-gradient(ellipse at 85% 10%, #4d4058, transparent 58%), #302936; }
.fs-contact .fs-message-sheet { color: var(--fs-ink); }
.fs-contact .fs-message-sheet small { color: var(--fs-muted); }
.fs-contact select, .fs-message-sheet select { min-height: 46px; border-radius: 12px; background-color: #fffefa; }
.fs-profiles { margin-top: .8rem; border-block-end: 1px solid var(--fs-rule); }
.fs-profiles summary { min-height: 44px; padding: .68rem .1rem; color: var(--fs-deep); cursor: pointer; font-weight: 700; }
.fs-profiles nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .2rem .9rem; padding-block: .3rem .9rem; }
.fs-profiles nav a { display: flex; align-items: center; min-height: 44px; color: var(--fs-deep); }
.fs-route .fs-route-list { border-radius: var(--portal-radius); background: #fdfbf7; }
.fs-route .fs-adviser { border-radius: var(--portal-radius); background: #f0eaf3; overflow: hidden; }
.fs-route .fs-adviser img { border-radius: var(--portal-inner); }
body[data-fin-page] .fs-public .policy-content, body[data-fin-page] .fs-consent { border-radius: var(--portal-radius); background-color: var(--fs-white); }
.fs-public .policy-content { line-height: 1.64; }

/* Financial tools: quiet inputs, opaque outputs and a distinct canvas for data. */
body[data-fin-page]:is([data-fin-page="strategie"], [data-fin-page="nastroj"]), .biz {
  --st-card: #fffefa; --st-text: var(--fs-ink); --st-muted: var(--fs-muted);
  --st-border: var(--fs-rule); --st-plum: var(--fs-deep); --st-paper: var(--fs-paper);
  --paper: #fffefa; --deep: var(--fs-deep); --rule: var(--fs-rule);
}
.st .st-hero {
  background: var(--portal-studio); border: 1px solid var(--fs-rule); border-radius: var(--portal-radius);
  box-shadow: var(--fs-shadow); min-height: 8rem;
}
.st .st-hero::before { content: none; }
.st .st-hero img {
  right: clamp(.85rem, 3.5%, 3rem); height: 77%; max-width: 19%;
  object-fit: cover; border: 3px solid #f8f5fa; border-radius: var(--portal-inner);
  outline: 1px solid #d2c6d8; outline-offset: 0; box-shadow: 0 5px 11px -8px #49355388;
}
.st-hero em, .biz h1 em, .fs-route h1 em { color: var(--fs-deep); }
.st-panel, .st-card, .st-chart, .calc-score, .calc-chart,
.biz-input-card, .biz-result, .biz .biz-tile, .biz-profile-grid section, .biz-contact, .biz-still {
  border-radius: var(--portal-radius); box-shadow: var(--fs-shadow);
}
.st .st-panel, .st .st-card:not([data-tone]), .biz-input-card, .biz-result, .biz .biz-tile {
  background-color: var(--fs-white); border-color: var(--fs-rule);
}
.st .st-form, .biz .biz-result { border-width: 1px; border-style: solid; }
.st .st-present, .st .st-contact, .biz .biz-pills a, .biz .biz-tools button, .biz .own-add,
.biz .biz-link.biz-mobile-jump { min-height: 44px; border-radius: var(--portal-pill); }
.st .st-mode, .calc .calc-modes, .biz .biz-switch { border-radius: var(--portal-inner); }
.st .st-mode span, .calc .calc-modes button, .biz .biz-switch button { border-radius: 11px; min-height: 44px; }
.st select, .calc .calc-select, .biz select, .biz input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.st .st-input, .fs-public .quick-form .field input {
  border-radius: 11px; min-height: 44px;
}
.st-check, .own-check { min-height: 44px; align-items: center; }
.st-check input { align-self: center; }
.st .st-chart, .calc .calc-chart {
  color: #fffaff; background: radial-gradient(ellipse at 86% 4%, #493951, transparent 64%), #292331;
}
.st .st-scrub input[type="range"], .biz .biz-slider input[type="range"] { min-height: 44px; }
.biz .biz-slider button, .biz .own-remove { min-width: 44px; min-height: 44px; border-radius: 11px; }
.biz .biz-tax-detail > summary, .biz .biz-advanced > summary, .biz .biz-breakdown > summary,
.calc .calc-chart input[type="range"], .biz .biz-switch button { min-height: 44px; }
.biz .biz-lime { border-radius: var(--portal-pill); }
.st :is(.st-main-stat,.calc-amount), .biz :is(.biz-saving-total,.biz-payouts strong) { font-variant-numeric: tabular-nums; }
.calc .calc-score { background: linear-gradient(115deg, #f7f2f7, #ece5f1); }
.calc-income .quick-form, .calc-income .input-panel, .calc-income .comparison-bank,
.calc-income .comparison-summary, .calc-income .email-gate, .calc-income .comparison-cta {
  border-radius: var(--portal-inner); box-shadow: var(--fs-shadow);
}
.st .st-read, .st .calc-read, .biz .biz-saving { border-radius: var(--portal-inner); }
.biz .biz-saving { background: radial-gradient(ellipse at 90% 5%, #51405b, transparent 72%), #352a3f; }
.biz .biz-still { border: 4px solid #f7f3f9; outline: 1px solid var(--fs-rule); box-shadow: var(--portal-glass-shadow); }
.biz .biz-slip { transform: none; border-radius: var(--portal-inner); background: #fcfaf6; border: 1px solid #ddd3e1; }
.biz .biz-slip::before { content: none; }
.biz .biz-profile-grid section+section { background: #f0ebf3; }
.biz .biz-section .biz-guides { border: 1px solid var(--fs-rule); border-radius: var(--portal-radius); padding-inline: clamp(1rem, 2.5vw, 2rem); background: var(--fs-white); }
.biz .biz-guides details:last-child { border-bottom: 0; }
.biz .biz-contact { background: radial-gradient(ellipse at 90% 8%, #52435e, transparent 72%), #302936; }
.biz .biz-contact .biz-lime { background: #e0ebaa; color: #302936; }
.biz-input-card label, .st-field label { color: #3e3544; }
body[data-fin-page] :is(a,button,summary,input,select,textarea):focus-visible { outline: 3px solid #78579d; outline-offset: 3px; }
:is(.st-chart,.calc-chart,.biz-contact,.fs-contact) :is(a,button,summary,input,select):focus-visible { outline-color: #e2f3a0; }
:is(.st,.biz,.fs-editorial) [hidden] { display: none !important; }

@media (max-width: 57rem) {
  .fs-wide-nav { display: none; } .fs-menu { display: block; }
  .fs-mast a.fs-contact-link { margin-left: auto; }
}
@media (max-width: 44rem) {
  :root { --portal-radius: 18px; --portal-inner: 12px; }
  .fs-mast-inner { min-height: 3.75rem; }
  .fs-cover-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(5.6rem, .78fr);
    grid-template-areas: "copy photo" "lead lead" "actions actions";
    gap: .8rem clamp(.7rem, 3vw, 1.15rem); padding-block: 1.8rem 1.65rem;
  }
  .fs-cover-copy { align-self: center; }
  .fs-cover-copy h1 { font-size: clamp(2.2rem, 7.8vw, 3.55rem); line-height: 1.045; }
  .fs-cover-copy h1 em { font-size: .89em; }
  .fs-editorial .fs-byline { display: grid; gap: .08rem; margin-bottom: .7rem; font-size: .84rem; }
  .fs-byline span { padding: 0; border: 0; }
  .fs-glass-portrait { width: min(100%, 11.5rem); }
  .fs-glass-portrait::before { transform: translate(4px, 4px) rotate(2deg); }
  .fs-glass-inner { aspect-ratio: 4 / 5; }
  .fs-glass-inner img { object-position: 51% 9%; }
  .fs-cover-grid > .fs-lead { padding-top: .25rem; font-size: 1rem; margin: 0; }
  .fs-cover-grid > .fs-actions { margin: 0; gap: .3rem .6rem; flex-wrap: wrap; }
  .fs-cover-grid .fs-actions > a { width: auto; min-height: 46px; padding-inline: 1rem; font-size: .93rem; }
  .fs-proof { padding-bottom: .7rem; }
  .fs-proof .fs-metrics { padding: .95rem .75rem; }
  .fs-proof .fs-metrics>div { min-width: 0; padding-inline: .52rem .1rem; }
  .fs-proof .fs-metrics>div:first-child { padding-left: 0; }
  .fs-proof .fs-metrics dt { font-size: clamp(.75rem, 2.5vw, .88rem); line-height: 1.28; }
  .fs-proof .fs-metrics dd { font-size: clamp(1.35rem, 4.3vw, 2rem); }
  .fs-about-photo { width: min(100%, 22rem); }
  .fs-catalog-still { align-self: center; margin: 0; }
  .fs-catalog-cards .fs-object img { height: 100%; width: 100%; }
  .st .st-hero { min-height: 6.25rem; }
  .st .st-hero img { height: auto; width: 18%; max-height: 80%; }
  .biz .biz-slip { width: auto; max-width: 87%; }
}
@media (max-width: 23rem) {
  .fs-cover-grid .fs-actions { display: grid; grid-template-columns: 1fr; }
  .fs-cover-grid .fs-button-outline { background: transparent; border-color: transparent; }
}
@media (prefers-reduced-motion: no-preference) {
  .fs-glass-portrait { animation: portal-portrait-in 400ms ease-out both; }
  .fs-pick, .fs-tool-card, .biz .biz-tile, .fs-button, .biz-primary, .fs-contact-link {
    transition: transform var(--portal-ease), box-shadow var(--portal-ease), background-color var(--portal-ease);
  }
  @media (hover: hover) and (pointer: fine) {
    .fs-pick:hover, .fs-tool-card:hover, .biz .biz-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -14px #42304f61; }
  }
  :is(.fs-button,.biz-primary,.fs-contact-link):active { transform: translateY(1px); }
}
@keyframes portal-portrait-in { from { opacity: .15; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body[data-fin-page] *, body[data-fin-page] *::after, body[data-fin-page] *::before {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .fs-glass-portrait, .fs-glass-portrait::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: #e4dce9; }
  .fs-glass-portrait::after, .fs-cover::before, .fs-catalog-head::before { display: none; }
}
@media print {
  .fs-mast, .fs-foot, .fs-crumb { display: none; }
  body[data-fin-page], .st .st-panel, .biz .biz-result, .biz .biz-input-card { background: white; box-shadow: none; }
  .fs-glass-portrait, .fs-tool-card, .st-chart, .biz-saving { break-inside: avoid; }
  .biz .biz-saving { background: #fff; color: #242129; }
  .biz .biz-saving :is(h2,h3,strong,small,span,p) { color: #242129; }
}
