/* Finex website. The first screen is the client's pick, 5A "Rising bars" as 5a-1
   (website/homepages/shared/5a.css); everything below it is new. Loaded after
   engine/scrollcraft.css, which is copied unchanged from the scroll-craft skill. */

:root {
  --navy: #0C1533; --navy-deep: #080F26; --blue: #1B49D9; --orange: #E2611B; --white: #FFFFFF;
  --soft: #F2F5FB; --pale: #DCE3F2; --muted: #4A5470; --line: #DDE2EC;
  --font: "Wix Madefor Display", "Helvetica Neue", Arial, sans-serif;
  --margin: clamp(1rem, 3vw, 3rem);
  --gap: clamp(0.5rem, 1vw, 1rem);
  --bar-h: 5.75rem;
  --maxw: 84rem;

  /* engine tokens, rebranded */
  --sc-canvas: var(--white); --sc-surface: var(--soft);
  --sc-ink: var(--navy); --sc-ink-soft: var(--muted);
  --sc-accent: var(--orange); --sc-accent-ink: var(--white);
  --sc-font-display: var(--font); --sc-font-text: var(--font);
  --sc-shadow-color: 228 60% 12%;
}
html { scroll-padding-top: calc(var(--bar-h) + 1rem); }
body { font-size: 1.0625rem; line-height: 1.6; letter-spacing: 0; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--navy); color: var(--white); padding: 0.75rem 1rem; border-radius: 0.5rem; text-decoration: none; font-weight: 600; }
.skip:focus { top: 1rem; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--margin); }

/* ------------------------------------------------------------ buttons -- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.4rem; padding: 0 1.6rem; border: 0; border-radius: 0.5rem; font: inherit; font-weight: 700; font-size: 1.1875rem; line-height: 1.1; text-decoration: none; white-space: nowrap; background: var(--orange); color: var(--white); cursor: pointer; transition: background-color 160ms ease, transform 160ms ease; }
.btn:hover { background: #C9551A; }
.btn:active { transform: translateY(1px); }
.btn--navy { background: var(--navy); font-size: 1rem; font-weight: 600; min-height: 2.75rem; padding: 0 1.15rem; }
.btn--navy:hover { background: #1A2550; }
/* No underline (Nikola, 2026-11-22): navy and bold, the blue arrow says it is a link. */
.link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-weight: 700; font-size: 1.125rem; color: var(--navy); text-decoration: none; transition: color 160ms ease; }
.link svg { color: var(--blue); width: 1.15rem; height: 1.15rem; flex: none; transition: transform 160ms ease; }
.link:hover { color: var(--blue); }
.link:hover svg { transform: translateY(3px); }

/* --------------------------------------------------------------- bar -- */
.bar { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--bar-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--margin); background: var(--white); transition: box-shadow 200ms ease; }
.bar.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 18px -10px hsl(228 60% 12% / 0.18); }
.logo { display: block; height: 1.9rem; width: fit-content; }
.logo svg { height: 100%; width: auto; }
.bar__nav { display: flex; gap: 2rem; font-weight: 500; }
.bar__nav a { text-decoration: none; position: relative; }
.bar__nav a:not(.btn):hover { color: var(--blue); }
.bar__nav a.is-here::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.35rem; height: 2px; background: var(--orange); }
.bar__menu-cta { display: none; }
.bar__end { justify-self: end; display: flex; align-items: center; gap: 1.25rem; }
.lang { display: flex; gap: 0.15rem; }
.lang button { background: none; border: 0; padding: 0.35rem 0.4rem; font-size: 0.875rem; font-weight: 500; color: var(--muted); cursor: pointer; border-radius: 0.3rem; }
.lang button[aria-pressed="true"] { color: var(--navy); font-weight: 700; }
.bar__toggle { display: none; }

/* -------------------------------------------------------------- hero -- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 50rem; padding-top: var(--bar-h); overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.head { margin-top: clamp(2rem, 6vh, 4.5rem); text-align: center; padding-inline: var(--margin); position: relative; z-index: 2; }
h1 { font-weight: 800; font-size: clamp(2.75rem, 0.9rem + 5.4vw, 6rem); line-height: 1; letter-spacing: -0.04em; }
h1 em, .slogan em { font-style: normal; white-space: nowrap; }
.sub { margin: 1.5rem auto 0; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.45; max-width: 54ch; text-wrap: balance; color: var(--muted); }
.act { margin-top: 2rem; display: flex; justify-content: center; align-items: center; gap: 2rem; }

.chart { position: absolute; left: var(--margin); right: var(--margin); bottom: 0; height: 46vh; display: flex; align-items: flex-end; gap: var(--gap); border-bottom: 3px solid var(--navy); }
.col { position: relative; flex: 1; height: var(--h); border-radius: 1rem 1rem 0 0; overflow: hidden; background: var(--soft); text-decoration: none; }
.col img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--sc-ease-out); }
.col span { position: absolute; left: 0.6rem; top: 0.6rem; background: var(--white); padding: 0.4rem 0.7rem; border-radius: 0.4rem; font-weight: 700; font-size: 0.9375rem; line-height: 1.2; }
.col:last-of-type span { background: var(--orange); color: var(--white); }
@media (min-width: 861px) { .col span { max-width: calc(100% - 1.2rem); } } /* a two-line label keeps its gap on the right too */
.col:hover img { transform: scale(1.04); }

/* One straight dashed line over the bars (Nikola, 2026-11-22: no kinks, not curved). A straight
   line stays clear of the tops because the bars grow faster towards the end. */
.trend { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trend line { stroke: var(--orange); stroke-width: 3; stroke-linecap: round; }

/* Opening (Nikola, 2026-11-15: no squish). The line waits for all of this and then appears
   one dash at a time, no fade (Nikola, 2026-11-22; finex.js draws the dashes).
   Each bar rises out of the base line like a column of a chart being filled: the bar's
   outline opens upward while its photo slides up inside it, left to right, one after another.
   The label lands once its bar is up. All with fill-mode
   backwards, so nothing holds a transform afterwards and the hover zoom still works. */
@media (prefers-reduced-motion: no-preference) {
  .col { --t: calc(var(--i) * 120ms + 250ms); animation: bar-up 950ms cubic-bezier(0.65, 0, 0.2, 1) var(--t) backwards; }
  .col img { animation: photo-up 1300ms cubic-bezier(0.22, 1, 0.36, 1) var(--t) backwards; }
  .col span { animation: label-in 380ms ease-out calc(var(--t) + 750ms) backwards; }
  .trend.is-playing line { animation: dash-in 1ms steps(1) backwards; }
  .head > * { animation: rise 800ms cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
}
@keyframes bar-up { from { clip-path: inset(100% 0 0 0 round 1rem 1rem 0 0); } to { clip-path: inset(0 0 0 0 round 1rem 1rem 0 0); } }
@keyframes photo-up { from { transform: translateY(35%) scale(1.15); } }
@keyframes label-in { from { opacity: 0; } }
@keyframes dash-in { from { visibility: hidden; } }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }

/* ------------------------------------------------- section furniture -- */
section[id]:not(.hero) { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.sec-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.eyebrow { font-size: 0.9375rem; font-weight: 700; color: var(--orange); margin-bottom: 0.9rem; }
.eyebrow--light { color: #F08A52; }
h2 { font-weight: 800; font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
#uslugi { scroll-margin-top: -1.25rem; } /* no strip of the hero left under the bar */
.sec-head--solo { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-head--solo h2 { font-size: clamp(2.75rem, 1.6rem + 4vw, 5rem); line-height: 1; }
.lead { margin-top: 1.25rem; font-size: clamp(1.125rem, 1rem + 0.3vw, 1.25rem); color: var(--muted); max-width: 40ch; }

/* ----------------------------------------------------------- services -- */
.services { background: var(--white); border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: start; }
.svc__stage { position: sticky; top: calc(var(--bar-h) + 1.5rem); height: calc(100vh - var(--bar-h) - 3rem); height: calc(100svh - var(--bar-h) - 3rem); max-height: 48rem; display: grid; grid-template-rows: 1fr auto; gap: 1.5rem; }
.svc__photo { position: relative; border-radius: 1rem; overflow: hidden; background: var(--soft); min-height: 0; }
.svc__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 450ms ease; }
.svc__photo img.is-on { opacity: 1; }
.svc__chart { height: 9.5rem; display: flex; align-items: flex-end; gap: var(--gap); border-bottom: 3px solid var(--navy); }
.svc__chart a { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; position: relative; }
.svc__chart i { display: block; height: calc(var(--h) - 1.6rem); min-height: 0.5rem; border-radius: 0.5rem 0.5rem 0 0; background: var(--pale); transition: background-color 300ms ease; }
.svc__chart a.is-done i { background: var(--navy); }
.svc__chart a.is-on i { background: var(--orange); }
.svc__chart span { position: absolute; left: 0; right: 0; top: calc(100% + 0.5rem); font-size: 0.75rem; font-weight: 600; color: var(--muted); text-align: center; white-space: nowrap; }
.svc__chart a.is-on span { color: var(--navy); font-weight: 700; }
.svc__chart a:hover i { outline: 2px solid var(--navy); outline-offset: 2px; }
.svc__stage { padding-bottom: 1.6rem; }

.svc__item { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-block: 2rem; }
.svc__item + .svc__item { border-top: 1px solid var(--line); }
.svc__item h3 { font-weight: 800; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; }
.svc__item p { text-wrap: pretty; margin-top: 1rem; font-size: 1.125rem; color: var(--muted); max-width: 36ch; }
.svc__img { display: none; }
.svc__cta { margin-top: 2rem; align-self: flex-start; }
.ticks { margin-top: 1.5rem; display: grid; gap: 0.7rem; }
.ticks li { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 600; }
.ticks svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.15rem; color: var(--orange); }

/* ----------------------------------------------------------- approach -- */
.approach { background: var(--soft); --draw: clamp(0, calc((var(--sc-p, 1) - 0.22) / 0.3), 1); }
.steps__track { position: relative; height: 6rem; margin-bottom: 2.5rem; }
.steps__track svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; clip-path: inset(-10px calc((1 - var(--draw)) * 100%) -10px -10px); }
.steps__track line { stroke: var(--orange); stroke-width: 3; stroke-dasharray: 6 7; stroke-linecap: round; }
.steps__track i { --at: var(--x, calc(var(--i) / 4)); --on: clamp(0, calc((var(--draw) - var(--at)) * 30 + 1), 1); position: absolute; left: calc(var(--at) * 100%); top: calc((1 - var(--at)) * 100%); width: 1.25rem; height: 1.25rem; margin: -0.625rem 0 0 -0.625rem; border-radius: 50%; background: var(--white); border: 3px solid var(--navy); box-shadow: inset 0 0 0 calc(var(--on) * 0.5rem) var(--orange); transform: scale(calc(0.85 + var(--on) * 0.15)); }
.steps ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li h3 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 0.6rem; }
.steps li h3::before { content: counter(step); font-size: 0.9375rem; font-weight: 700; color: var(--orange); }
.steps li p { text-wrap: pretty; margin-top: 0.6rem; color: var(--muted); }

/* -------------------------------------------------------------- about -- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.slogan { font-size: clamp(2.2rem, 1.2rem + 3vw, 4rem); line-height: 1.05; }
.about__body > p { font-size: 1.1875rem; color: var(--muted); }
.values { margin-top: 2.25rem; display: grid; gap: 1.25rem; }
.values li { padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: baseline; }
.values h3 { font-size: 1.1875rem; font-weight: 800; }
.values p { color: var(--muted); }

/* ------------------------------------------------------------ contact -- */
.contact { background: var(--navy); color: var(--white); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__intro > p:not(.eyebrow) { margin-top: 1.25rem; font-size: 1.1875rem; color: #C3CAE0; max-width: 34ch; }
.reach { margin: 2.25rem 0 0; display: grid; gap: 1rem; max-width: 30rem; }
.reach div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding-top: 1rem; border-top: 1px solid #2A3560; }
.reach dt { font-size: 0.875rem; color: #AEB7D4; }
.reach dd { margin: 0; font-size: 1.1875rem; font-weight: 600; color: var(--white); overflow-wrap: anywhere; }
.reach a { color: inherit; text-decoration: none; }
.reach a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.form__status.is-ok { color: var(--white); font-weight: 600; }
.form { position: relative; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; background: #131D45; padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: 1rem; }
.form label { display: grid; gap: 0.45rem; font-size: 0.9375rem; font-weight: 600; color: #DCE1F0; }
.form__wide { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; min-height: 3.1rem; padding: 0.7rem 0.9rem; border: 1px solid #36426E; border-radius: 0.5rem; background: var(--white); color: var(--navy); font-size: 1rem; font-weight: 500; }
.form textarea { resize: vertical; min-height: 7rem; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; }
/* Services: a closed field like the others; the tick boxes open in a list under it. */
.picks { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.45rem; align-content: start; min-width: 0; }
.picks__label { font-size: 0.9375rem; font-weight: 600; color: #DCE1F0; }
.picks__toggle { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; min-width: 0; min-height: 3.1rem; padding: 0.7rem 0.9rem; border: 1px solid #36426E; border-radius: 0.5rem; background: var(--white); color: var(--navy); font: inherit; font-size: 1rem; font-weight: 500; text-align: left; cursor: pointer; }
.picks__toggle:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; }
.picks__summary { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picks__summary.is-empty { color: #6B7392; }
.picks__chev { flex: none; width: 0.75rem; height: 0.5rem; color: var(--navy); transition: transform 0.2s; }
.picks__toggle[aria-expanded="true"] .picks__chev { transform: rotate(180deg); }
.picks__list { position: absolute; z-index: 20; top: calc(100% + 0.4rem); left: 0; right: 0; display: grid; gap: 0.15rem; padding: 0.35rem; background: var(--white); border: 1px solid #C9D0E4; border-radius: 0.5rem; box-shadow: 0 18px 40px rgba(5, 10, 30, 0.35); }
.picks__list[hidden] { display: none; }
.form .pick { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.75rem; border-radius: 0.375rem; font-size: 1rem; font-weight: 500; color: var(--navy); cursor: pointer; }
.form .pick:hover { background: #F0F3FA; }
.form .pick:has(input:checked) { background: #EAF0FD; }
.form .pick input { flex: none; width: 1.1rem; height: 1.1rem; min-height: 0; margin: 0; padding: 0; accent-color: var(--orange); cursor: pointer; }
.form .pick:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: -2px; }
.form .pick input:focus-visible { outline: none; }
.form [aria-invalid="true"] { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.form__end { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.4rem; }
.form__status { font-size: 0.9375rem; color: #DCE1F0; max-width: 34ch; }
.form__privacy { flex-basis: 100%; font-size: 0.875rem; color: #AEB7D4; }
.form__privacy a { color: #DCE1F0; }

/* ------------------------------------------------------------- footer -- */
.foot { background: var(--navy-deep); color: #C3CAE0; padding-block: 2.5rem; }
.foot__grid { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap; }
.foot__logo img { height: 2rem; width: auto; }
.foot nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--white); }
.foot__copy { font-size: 0.9375rem; }
.foot__legal { display: flex; align-items: center; gap: 0.5rem 1.75rem; flex-wrap: wrap; font-size: 0.9375rem; }
.foot__legal a { text-decoration: none; }
.foot__legal a:hover { color: var(--white); }
.foot__firm { width: 100%; min-width: 0; margin: 0; padding-top: 1.5rem; border-top: 1px solid #1E2850; font-size: 0.8125rem; color: #8D97B8; }
.foot__firm > span { display: inline-block; white-space: nowrap; }
.foot__firm > span::before { content: "·"; margin-inline: 0.6em; }

/* -------------------------------------- privacy policy and terms pages -- */
[data-lang-block="en"], html[lang="en"] [data-lang-block="mk"] { display: none; }
html[lang="en"] [data-lang-block="en"] { display: block; }
.legal { padding-block: calc(var(--bar-h) + clamp(2.5rem, 6vw, 5rem)) clamp(4rem, 8vw, 7rem); }
.legal__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.legal h1 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.legal__date { margin-top: 1rem; font-size: 0.9375rem; color: var(--muted); }
.legal .lead { max-width: 52ch; }
.legal__sec { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 44rem); gap: 1rem clamp(2rem, 5vw, 5rem); padding-block: 2rem; border-top: 1px solid var(--line); }
.legal__sec h2 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.legal__sec p + p, .legal__sec ul + p, .legal__sec p + ul { margin-top: 0.9rem; }
.legal__sec ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.legal__sec li::marker { color: var(--orange); }
.legal__sec a { text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.legal__sec a:hover { color: var(--blue); }
/* A detail the client has not given yet; none may be left when the site goes live. */
.todo { background: #FFE9DC; color: var(--navy); padding: 0.05em 0.3em; border-radius: 0.25rem; }

/* ----------------------------------------------- reduced motion extras -- */
@media (prefers-reduced-motion: reduce) {
  .approach { --draw: 1; }
  .svc__photo img, .col img, .link svg { transition: none; }
}

/* ----------------------------------- short laptop screens (720 to 820) -- */
/* The whole first screen, bars included, stays on screen without scrolling. */
@media (max-height: 820px) and (min-width: 861px) {
  .hero { min-height: 40rem; }
  .head { margin-top: 3vh; }
  h1 { font-size: clamp(2.75rem, 9vh, 6rem); }
  .sub { margin-top: 1rem; }
  .act { margin-top: 1.25rem; }
  .chart { height: 44vh; }
}

/* ------------------------------------------------------ laptop / tablet -- */
@media (max-width: 1100px) {
  .bar__nav { gap: 1.25rem; }
  .bar__cta { display: none; }
}

/* -------------------------------------------------------------- phone -- */
@media (max-width: 860px) {
  :root { --bar-h: 4.25rem; }
  .bar { grid-template-columns: 1fr auto; }
  .logo { height: 1.5rem; }
  .bar__end { gap: 0.5rem; }
  .bar__toggle { display: inline-grid; place-content: center; gap: 6px; width: 2.75rem; height: 2.75rem; border: 0; background: none; cursor: pointer; margin-right: -0.5rem; }
  .bar__toggle span { display: block; width: 1.4rem; height: 2px; background: var(--navy); transition: transform 200ms ease; }
  .bar__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .bar__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .bar__nav { position: fixed; inset: var(--bar-h) 0 auto; flex-direction: column; gap: 0; padding: 0.5rem var(--margin) 1.5rem; background: var(--white); box-shadow: 0 12px 24px -12px hsl(228 60% 12% / 0.25); border-top: 1px solid var(--line); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 180ms ease, transform 180ms ease, visibility 0s 180ms; }
  .bar__nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 180ms ease, transform 180ms ease; }
  .bar__nav a:not(.btn) { padding: 0.9rem 0; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
  .bar__nav a.is-here::after { display: none; }
  .bar__menu-cta { display: inline-flex; margin-top: 1.25rem; min-height: 3.2rem; }

  .hero { min-height: 40rem; }
  .head { margin-top: clamp(1.25rem, 4vh, 2.5rem); }
  h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .sub { font-size: 1.0625rem; margin-top: 1rem; }
  .act { flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
  /* Phones and upright tablets. The chart lies on its side (Nikola, 2026-11-15: thin upright bars
     hid the photos and sideways labels were hard to read): six bars growing to the right,
     shortest on top, Финансиски менаџмент full width at the bottom. Since 2026-11-23 (Nikola)
     the bars are solid, navy with the last one orange, the name inside each bar, no photos and
     no navy line down the left side. In the flow of the page, not pinned to the bottom. */
  .hero { height: auto; min-height: 100vh; min-height: 100svh; padding-bottom: 1.25rem; }
  .chart { position: relative; inset: auto; width: calc(100% - 2 * var(--margin)); height: auto; margin-top: auto; padding-top: 2rem;
    flex-direction: column; align-items: flex-start; gap: 0.5rem; border-bottom: 0; }
  .col { flex: none; display: flex; align-items: center; width: calc(25% + var(--h) * 0.75); height: clamp(2.9rem, 6.4svh, 3.75rem);
    padding-inline: 0.95rem; border-radius: 0 0.6rem 0.6rem 0; background: var(--navy); }
  .col:last-of-type { background: var(--orange); }
  .col img { display: none; }
  .col span, .col:last-of-type span { position: static; padding: 0; background: none; color: var(--white); font-size: 0.9375rem; font-weight: 700; white-space: nowrap; }
  .col:last-of-type span { color: var(--navy); } /* small text on orange is navy (contrast) */

  .trend { display: none; }

  .svc { grid-template-columns: 1fr; }
  .svc__stage { display: none; }
  .svc__item { min-height: 0; padding-block: 2.25rem; }
  .svc__item:first-child { padding-top: 0; }
  .svc__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0.75rem; margin-bottom: 1.25rem; }

  .steps__track { display: none; }
  .steps ol { grid-template-columns: 1fr; gap: 0; border-left: 3px dashed var(--orange); margin-left: 0.4rem; }
  .steps li { padding: 0 0 1.75rem 1.5rem; position: relative; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::before { content: ""; position: absolute; left: calc(-0.55rem - 1.5px); top: 0.35rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--orange); border: 3px solid var(--soft); }

  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .values li { grid-template-columns: 1fr; gap: 0.25rem; }
  .form { grid-template-columns: 1fr; }
  .picks__list { position: static; box-shadow: none; }
  .legal__sec { grid-template-columns: 1fr; gap: 0.75rem; }
  .foot__grid { flex-direction: column; align-items: flex-start; }
  .foot__firm > span { display: block; }
  .foot__firm > span::before { content: none; }
}
/* No buttons in the hero (trial, Nikola 2026-11-22): the bars grow into their place. Stops
   applying by itself if the .act row comes back. */
/* The text sits in the middle of the space between the bar and the top of the fifth column
   (81 % of the chart), the one under the headline's right end. */
.hero:not(:has(.act)) .head { margin-block: auto; }
@media (min-width: 861px) { .hero:not(:has(.act)) { padding-bottom: calc(46vh * 0.81); } }
@media (min-width: 861px) and (max-height: 820px) { .hero:not(:has(.act)) { padding-bottom: calc(44vh * 0.81); } }
@media (max-width: 860px) { .hero:not(:has(.act)) .chart { margin-top: 0; } .hero:not(:has(.act)) .head { padding-block: 0.75rem; } }
@media (max-width: 599px) { .hero:not(:has(.act)) .col { height: clamp(2.9rem, calc((100svh - 26.5rem) / 6), 4.75rem); } }
@media (min-width: 600px) and (max-width: 860px) { .hero:not(:has(.act)) .col { height: clamp(3.5rem, 9.2svh, 7rem); } }
/* Upright tablets: a larger name in the taller bars. */
@media (min-width: 600px) and (max-width: 860px) { .col span, .col:last-of-type span { font-size: 1.0625rem; } }
/* Phone opening: the same idea as on desktop, turned on its side. Each bar grows out of the
   left edge to the right, one after another, then its name lands. */
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .col { animation-name: bar-right; }
}
@keyframes bar-right { from { clip-path: inset(0 100% 0 0 round 0 0.6rem 0.6rem 0); } to { clip-path: inset(0 0 0 0 round 0 0.6rem 0.6rem 0); } }
@media (max-width: 380px) {
  .lang button { padding-inline: 0.3rem; }
}
