:root {
  --pine:      #16211C;
  --moss:      #3E5B4A;
  --limestone: #E9EBE4;
  --chalk:     #FCFDFA;
  --way:       #F0B429;
  --mark:      #0D9488;  /* rhombus waymarkers — teal-600, same as ultreia-front */
  --alert:     #A6402E;
  --line:      #CFD5C8;
  --space:     1.5rem;
  --font-display: 'Onest', system-ui, sans-serif;
  --font-body:    'Golos Text', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --font-serif:   'Lora', Georgia, serif;   /* warm accent: ledes and the hero subline only */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--limestone);
  color: var(--pine);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(2.15rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--moss); }

a {
  color: inherit;
  text-decoration: none;
}
a:hover { border-bottom: 1px solid var(--way); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

:focus-visible { outline: 2px solid var(--way); outline-offset: 2px; }

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--chalk);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.25rem;
}

.site-header__brand {
  display: flex;
  flex-direction: column;
  color: var(--pine);
}

.site-header__logo {
  width: 120px;
  max-width: 60vw;
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  word-spacing: -.15em;
}

.site-nav a { color: var(--pine); border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--way); }
/* the page you are on keeps the marker lit */
.site-nav a.is-active { border-bottom-color: var(--way); }

.site-social {
  display: flex;
  align-items: center;
  color: var(--moss);
  margin-left: .5rem;
}

.site-social:hover { color: var(--pine); }

.lang-toggle { display: flex; gap: .4rem; align-items: center; margin-left: .5rem; }
.lang-toggle a { color: var(--moss); opacity: .6; border-bottom: 1px solid transparent; }
.lang-toggle a.is-active { color: var(--moss); opacity: 1; font-weight: 500; }
.lang-toggle a + a::before { content: "|"; margin-right: .4rem; opacity: .4; color: var(--moss); }

/* hero */

.hero {
  background-size: cover;
  background-position: center;
  min-height: 72vh;
  display: flex;
  align-items: stretch;
}

/* the wash must span the whole hero, not just the height of the text — otherwise a
   strip of un-dimmed photo shows above it, and the strip's size follows the copy length */
.hero__overlay {
  flex: 1;
  display: flex;
  align-items: flex-end;
  /* the wash runs sideways so it clears the photo's subject and deepens under the text:
     dark on the title's side, fully clear on the other half */
  background:
    linear-gradient(90deg,
      rgba(22, 33, 28, .88) 0%,
      rgba(22, 33, 28, .45) 24%,
      rgba(22, 33, 28, 0) 50%);
  padding-block: 3rem 4rem;
}

.hero__overlay > .wrap { width: 100%; }

/* yellow at 12px over a photo is unreadable — chalk carries the text, a waymarker
   carries the colour */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  color: var(--chalk);
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.4em;
}

.hero__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--mark);
  transform: rotate(45deg);
  flex: none;
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* the front page photo has its figure on the left, so its copy goes to the right instead */
.hero--right .hero__overlay {
  background: linear-gradient(90deg,
    rgba(22, 33, 28, 0) 50%,
    rgba(22, 33, 28, .45) 76%,
    rgba(22, 33, 28, .88) 100%);
}

.hero--right .wrap { align-items: flex-end; text-align: right; }

/* the photo is busy — a soft shadow keeps the type readable wherever it lands */
.hero h1, .hero p, .hero__eyebrow { text-shadow: 0 1px 14px rgba(22, 33, 28, .75); }

.hero h1, .hero p { color: var(--chalk); }
.hero h1 { max-width: 40rem; }
.hero p { max-width: 34rem; opacity: .88; font-family: var(--font-serif); font-size: 1.2rem; }

/* the way-line rail: every section but the hero and footer sit on it */

section:not(.hero) > .wrap {
  position: relative;
  padding-left: clamp(1.5rem, 4vw, 2.5rem);
  padding-block: 4rem;
}

section:not(.hero) > .wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

section h2 {
  position: relative;
}

section:not(.hero) h2::before {
  content: "";
  position: absolute;
  left: clamp(-2.1rem, -4vw, -2.9rem);
  top: .55em;
  width: 10px;
  height: 10px;
  background: var(--mark);
  transform: rotate(45deg);
}

/* steps */

.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space);
  margin-top: 2rem;
}

.step__num {
  display: block;
  color: var(--way);
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75em;
}

/* services */

.services__grid, .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space);
  margin-top: 2rem;
}

.service, .card {
  padding: 1.5rem;
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: transform 150ms, border-color 150ms;
}

.service:hover, .card:hover {
  transform: translateY(-2px);
  border-color: var(--moss);
}

.service img, .card img {
  border-radius: 2px;
  margin-bottom: 1rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service, .card--post { position: relative; }
.service h3 a, .card--post h3 a { color: inherit; }
/* the title anchor stretches over the whole card, so anywhere on it is clickable */
.service h3 a::after, .card--post h3 a::after { content: ""; position: absolute; inset: 0; }

.service__meta {
  color: var(--way);
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* koaching-programi */

.cards--notes { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }

/* text-only workshops read as waymarkers on the rail, not as a second slab of cards */
.note { padding-left: 1.25rem; border-left: 1px solid var(--line); position: relative; }
.note h3 { margin-bottom: .5em; }
.note::before {
  content: "";
  position: absolute; left: -4px; top: .55em;
  width: 7px; height: 7px;
  background: var(--mark); transform: rotate(45deg);
}

.lede { max-width: 46rem; font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.6; }

/* korporativni-programi: six full-width image+text rows, sides alternating down the rail */
.programs { display: flex; flex-direction: column; gap: 3.5rem; margin-top: 2.5rem; }
.programs .about__inner:nth-child(even) { flex-direction: row-reverse; }
.programs h3 { font-size: 1.5rem; }

/* about */

.about__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
}

.about__inner img {
  flex: 2 1 16rem;
  min-width: 16rem;
  max-width: 26rem;
  border-radius: 2px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.about__inner > div { flex: 3 1 20rem; }

/* the За мен teaser mirrors За ателието so the two blocks don't read as one slab */
.about--me .about__inner { flex-direction: row-reverse; }
.about--me .about__inner img { aspect-ratio: 4 / 5; }

.more {
  display: inline-block;
  margin-top: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--moss);
  border-bottom: 1px solid var(--way);
  padding-bottom: .3em;
}

.more:hover { color: var(--pine); text-decoration: none; }
.more::after { content: " →"; color: var(--way); }

/* footer */

.site-footer {
  background: var(--pine);
  color: rgba(252, 253, 250, .7);
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  border-top: 1px solid var(--moss);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem;
}

.site-footer p { color: inherit; margin: 0; }
/* uppercase mono at .1em tracking makes word gaps wide, so separate the two links
   with a marker rather than more space — space alone reads as another word break */
/* tighter word-spacing inside each link, wide gap between them — the gap is the divider */
.site-footer__legal { display: flex; gap: 2.5rem; word-spacing: -.15em; }
.site-footer__legal a { color: inherit; }

/* placeholder page */

.page { min-height: 40vh; }

/* za-men */

.portrait { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: flex-start; }
.portrait__photo { flex: 1 1 16rem; max-width: 22rem; border-radius: 2px; }
.portrait__text { flex: 3 1 20rem; }

/* kontakti */

.contact { display: flex; flex-direction: column; gap: 2.5rem; }
.contact__row { display: flex; flex-direction: column; gap: .4em; }

.contact__label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--moss);
}

.contact__value { color: var(--pine); }

.contact__map {
  width: 100%;
  height: 24rem;
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: block;
}

/* details left, form in the space beside them; stacks when the row no longer fits */
.contact-grid { display: flex; flex-wrap: wrap; gap: 4rem; align-items: flex-start; }
.contact-grid .contact { flex: 1 1 15rem; }
.contact-grid__form { flex: 2 1 26rem; }
.contact-grid__form h2 { margin-top: 0; }

.form { max-width: 40rem; display: flex; flex-direction: column; gap: .8rem; margin-top: 1.25rem; }
.form label { font-family: var(--font-mono); text-transform: uppercase; font-size: .72rem;
              letter-spacing: .1em; color: var(--moss); display: block; margin-bottom: .4em; }
.form input, .form textarea, .form select {
  width: 100%; padding: .55rem .8rem; background: var(--chalk); color: var(--pine);
  border: 1px solid var(--line); border-radius: 2px;
  font: inherit; }
.form textarea { resize: vertical; }
/* name and email share a row, button and note share another — keeps the form the
   same height as the details column beside it */
.form__row { display: flex; gap: .8rem; flex-wrap: wrap; }
.form__row > div { flex: 1 1 11rem; }
.form__foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form__foot .form__note { margin: 0; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--moss); }
.form button { align-self: flex-start; padding: .8rem 2rem; background: var(--pine);
  color: var(--chalk); border: 0; border-radius: 2px; cursor: pointer;
  font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.form button:hover { background: var(--moss); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form__note { font-size: .85rem; }
.form__ok { border-left: 2px solid var(--way); padding-left: 1rem; color: var(--pine); }
.form__errors { border-left: 2px solid var(--alert); padding-left: 1rem; list-style: none;
  margin: 0 0 1.5rem; color: var(--alert); }

/* legal pages: long prose, so a narrow measure and quiet headings */
.article { max-width: 46rem; } /* prose measure, same call as .lede */
/* a subheading inside an article is not a section heading — the section h2 scale would dwarf the h1 */
.article h2 { font-size: 1.3rem; margin-top: 2.25rem; }
.article ul { color: var(--moss); padding-left: 1.1rem; margin: 0 0 1em; }
.article li { margin-bottom: .35em; }

.legal { max-width: 52rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2.5rem; }
.legal h2::before { display: none; }
.legal p { font-size: .98rem; }
.legal__scroll { overflow-x: auto; margin: 1.5rem 0 2rem; }

.legal__table {
  border-collapse: collapse;
  min-width: 42rem;
  width: 100%;
  font-size: .88rem;
}

.legal__table th, .legal__table td {
  border: 1px solid var(--line);
  padding: .75rem 1rem;
  vertical-align: top;
  text-align: left;
  color: var(--moss);
}

.legal__table th {
  background: var(--chalk);
  color: var(--pine);
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
}

/* zapazete-chas */
.booking__fallback { border-left: 2px solid var(--way); padding-left: 1rem; max-width: 46rem; margin-top: 2rem; }

.booking__pick { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: flex-start; }
.cal { flex: 1 1 22rem; max-width: 28rem; margin-top: 2rem; }
.cal__times { flex: 1 1 20rem; margin-top: 2rem; }
.cal__times h2 { font-size: 1.1rem; margin-top: 1.5rem; }
.cal__times h2::before { display: none; }  /* sits inside the calendar column, off the section rail */
.cal__times .booking__fallback { margin-top: 0; }
.cal__head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); text-transform: uppercase; font-size: .72rem;
  letter-spacing: .1em; color: var(--moss); margin-bottom: .6rem;
}
.cal__nav { display: flex; gap: 1rem; align-items: center; }
.cal__nav a { color: var(--moss); font-size: 1.6rem; line-height: 1; }
.cal__nav a:hover { color: var(--pine); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__dow { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; color: var(--moss); text-align: center; padding: .3rem 0; }
.cal__day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: var(--chalk); border: 1px solid var(--line); border-radius: 2px; color: var(--pine);
}
.cal__day:hover { border-color: var(--moss); }
.cal__day--off { color: var(--line); background: transparent; border-color: transparent; }
.cal__day.is-selected { border-color: var(--way); }

.slots { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; }
.slot {
  padding: .55rem 1rem; background: var(--chalk); color: var(--pine);
  border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
}
.slot:hover { border-color: var(--moss); }
.slot.is-picked { background: var(--pine); color: var(--chalk); border-color: var(--pine); }

.legal__effective { margin-top: 3rem; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }

/* motion */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.js-reveal [data-reveal].is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* admin (plan 0012) */

.admin-bar { background: var(--pine); color: var(--chalk); }
.admin-bar__inner { display: flex; align-items: center; gap: 2rem; padding-block: 1rem; }
.admin-bar__brand { color: var(--chalk); font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: .1em; font-size: .8rem; border-bottom: 0; }
.admin-bar__nav { display: flex; gap: 1.25rem; flex: 1; }
.admin-bar__nav a { color: var(--chalk); border-bottom: 1px solid transparent; }
.admin-bar__nav a:hover { border-bottom-color: var(--way); }
.admin-bar__logout { background: transparent; border: 1px solid var(--chalk); color: var(--chalk);
  padding: .4rem 1rem; border-radius: 2px; cursor: pointer; font-family: var(--font-mono);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.admin-bar__logout:hover { background: var(--chalk); color: var(--pine); }
.admin-main { padding-block: 2rem; }
.admin-login { max-width: 24rem; padding-block: 4rem; text-align: center; }
.admin-login__button { display: inline-block; padding: .8rem 2rem; background: var(--pine);
  color: var(--chalk); border-radius: 2px; border-bottom: 0; }

/* the public .form is a 40rem reading-width column; an admin editor is a work
   surface and must use the whole page, or every field ends up a few characters wide */
.admin-main .form { max-width: none; align-self: stretch; }
.admin-main .form button { align-self: flex-start; }

.admin-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; table-layout: fixed; }
.admin-table th, .admin-table td { padding: .5rem; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: middle; }
.admin-table th { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--moss); }
/* fixed layout + explicit widths: the four text columns share the room evenly instead of
   being sized by whichever title happens to be longest */
.admin-table th:first-child, .admin-table td:first-child { width: 12%; word-break: break-word; }
.admin-table th:nth-child(n+2):nth-child(-n+5) { width: 18%; }
.admin-table th:nth-child(6) { width: 5%; }
.admin-table th:nth-child(7) { width: 7%; }
.admin-table th:last-child { width: 6%; }
.admin-table input:not([type="checkbox"]) { width: 100%; padding: .35rem .5rem;
  border: 1px solid var(--line); border-radius: 2px; font: inherit; }
.admin-inline { display: flex; align-items: center; gap: .6rem; }

.admin-content__row { border: 1px solid var(--line); border-radius: 2px; padding: 1rem;
  margin-bottom: 1rem; }
.admin-content__row legend { font-family: var(--font-mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .1em; color: var(--moss); padding-inline: .3rem; }
.admin-content__cols { display: flex; gap: 1rem; }
.admin-content__cols > div { flex: 1 1 50%; }
