:root {
  --ink: #1a1712;
  --forest: #24382a;
  --moss: #3f6b4a;
  --cream: #f4ede1;
  --paper: #faf6ef;
  --sand: #e6d5b8;
  --terracotta: #c2541a;
  --terracotta-dark: #9a3f10;
  --gold: #d4a24a;
  --muted: #6b6458;
  --line: rgba(26, 23, 18, 0.12);
  --shadow: 0 18px 50px rgba(36, 56, 42, 0.14);
  --surface: #fff;
  --footer-bg: #17140f;
  --ok-bg: #e5f3e8;
  --ok-ink: #2f6b3a;
  --danger-bg: #fde8e8;
  --danger-ink: #9b2c2c;
  --radius: 18px;
  --header-h: 72px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: "Figtree", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
}

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

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

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--cream);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

/* Buttons */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 18px;
  line-height: 1.2;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--terracotta-dark);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-secondary {
  background: var(--cream);
  color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-lg {
  padding: 14px 22px;
  font-size: 1.02rem;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.92rem;
}

.icon-btn {
  border: 0;
  background: var(--cream);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  color: #fff;
  background: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: var(--forest);
  background: color-mix(in srgb, var(--forest) 94%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--terracotta);
  display: grid;
  place-items: center;
  flex: none;
}

.logo-mark svg {
  fill: #fff;
}

.logo-word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.version {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  padding: 3px 8px;
  border-radius: 999px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  color: #fff;
}

.nav-bars {
  display: block;
}

.nav-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .nav-bars span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.is-open .nav-bars span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-bars span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  max-height: 980px;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 18, 12, 0.42) 0%, rgba(20, 18, 12, 0.12) 32%, rgba(20, 18, 12, 0.28) 58%, rgba(20, 18, 12, 0.78) 100%),
    linear-gradient(90deg, rgba(20, 18, 12, 0.55) 0%, rgba(20, 18, 12, 0.18) 48%, transparent 78%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 0 0 72px;
  max-width: 760px;
  margin-left: max(16px, calc((100% - 1120px) / 2));
  margin-right: auto;
  width: min(720px, calc(100% - 32px));
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--gold);
}

.eyebrow.dark {
  color: var(--terracotta);
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sections */
.section {
  padding: 88px 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-alt {
  background: var(--cream);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head.split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}

.section-head.split .btn {
  margin-top: 34px;
  flex: none;
}

.section-head h2,
.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  min-height: 220px;
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--terracotta);
  margin-bottom: 18px;
}

.step h3,
.why h3,
.card h3 {
  font-size: 1.35rem;
}

.step p,
.why p,
.card p {
  color: var(--muted);
}

/* Filter + cards */
.filter-bar {
  display: grid;
  grid-template-columns: 180px 1fr 180px auto;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-bar .country-place {
  display: contents;
}

.filter-bar label {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.filter-bar input,
.filter-bar select,
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.filter-bar input:focus,
.filter-bar select:focus,
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--moss);
  outline-offset: 1px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card-media {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media time {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 999px;
}

.card-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-meta {
  color: var(--moss);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--cream);
  color: var(--forest);
  padding: 4px 8px;
  border-radius: 999px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.why {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.cta-band {
  background: var(--forest);
  color: #fff;
  padding: 72px 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-band .eyebrow {
  color: var(--gold);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
}

.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 28px 0;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.footer-inner .logo-word {
  color: #fff;
}

.cms-dev {
  margin: 0;
  font-size: 0.85rem;
}

.cms-dev a {
  color: var(--gold);
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 16, 12, 0.55);
}

.modal-panel {
  position: relative;
  width: min(560px, calc(100% - 24px));
  margin: 4vh auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
  max-height: 92vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.form-actions .btn-ghost {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--forest);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  z-index: 90;
  box-shadow: var(--shadow);
}

.toast[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .steps,
  .cards,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .section-head.split,
  .cta-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head.split .btn {
    margin-top: 0;
  }

  .hero-copy {
    padding-bottom: 48px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
    color: #fff;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--forest);
    background: color-mix(in srgb, var(--forest) 97%, transparent);
    padding: 8px 16px 18px;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a,
  .site-nav .btn {
    width: 100%;
    padding: 12px 8px;
    text-align: left;
  }

  .site-nav .btn {
    justify-content: center;
    margin-top: 8px;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .card-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-panel {
    width: 100%;
    margin: 0;
    max-height: 100svh;
    min-height: 100svh;
    border-radius: 0;
    padding: 16px 16px 12px;
  }

  .form {
    gap: 10px;
    flex: 1;
  }

  .form textarea {
    min-height: 64px;
  }

  .form-actions {
    margin-top: auto;
    padding-top: 8px;
  }

  .konto-grid {
    grid-template-columns: 1fr;
  }
}

body.page .site-header {
  background: var(--forest);
  background: color-mix(in srgb, var(--forest) 96%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.page-main {
  padding: calc(var(--header-h) + 40px) 0 72px;
  min-height: 70vh;
}

.auth-wrap {
  width: min(560px, calc(100% - 32px));
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.auth-alt {
  margin-top: 18px;
  color: var(--muted);
}

.auth-alt a {
  color: var(--terracotta);
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.flash {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 600;
}

.flash-ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.flash-error {
  background: var(--danger-bg);
  color: var(--danger-ink);
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.konto-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.konto-meetings {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.konto-meetings li {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.konto-meetings span {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

body.page .form-actions .btn-ghost,
.auth-card .btn-ghost {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
