/* Key Academy Europe training — industrial workshop, not SaaS purple */
:root {
  --ink: #141210;
  --paper: #f3efe6;
  --steel: #6e675c;
  --line: #d4cdc0;
  --ember: #c44a1a;
  --ember-dark: #9a3510;
  --hero-ink: #0c0b0a;
  --hero-mist: #2a2622;
  --white: #fffaf4;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Literata", "Iowan Old Style", Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.top {
  position: absolute;
  z-index: 3;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 0;
  color: var(--white);
}
.brand {
  font-family: "Oswald", "Impact", sans-serif;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 15px;
  text-transform: uppercase;
  text-decoration: none;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
  max-width: min(720px, 70vw);
  font-size: 12px;
}
.nav a { text-decoration: none; opacity: 0.88; }
.nav a:hover { opacity: 1; }

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12,11,10,0.25) 0%, rgba(12,11,10,0.55) 42%, rgba(12,11,10,0.92) 100%),
    radial-gradient(1200px 500px at 70% 10%, #3a332c 0%, transparent 55%),
    linear-gradient(115deg, var(--hero-ink) 0%, var(--hero-mist) 48%, #1a1714 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 0 0 72px;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.hero h1 {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 18px;
  max-width: 16ch;
}
.hero .lead {
  font-size: 18px;
  max-width: 42ch;
  color: #e8e0d4;
  margin: 0 0 28px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row .btn { min-width: 240px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 240px;
  padding: 0 22px;
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
}
.btn-primary { background: var(--ember); color: var(--white); }
.btn-primary:hover { background: var(--ember-dark); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,250,244,0.45); }
.btn-ghost:hover { border-color: var(--white); }

.section { padding: 72px 0; }
.section h2 {
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.muted { color: var(--steel); margin: 0 0 28px; max-width: 52ch; }

.countries-group-title {
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 28px 0 12px;
  color: var(--ink);
}
.countries-group-title:first-of-type { margin-top: 0; }
.countries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.countries a {
  background: var(--paper);
  padding: 22px 20px;
  text-decoration: none;
  min-height: 108px;
}
.countries a:hover { background: #ebe6db; }
.countries strong {
  display: block;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 16px;
}
.countries span { font-size: 14px; color: var(--steel); }

.ka-geo-intro { padding: 0 !important; max-width: none !important; }
.ka-geo-intro h1 { display: none; }

.facts { display: grid; grid-template-columns: 1fr; gap: 32px; }

.programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 8px 0 0;
}
.programs article {
  background: var(--paper);
  padding: 22px 20px 24px;
  min-height: 280px;
}
.programs strong {
  display: block;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 16px;
  margin: 0 0 12px;
}
.programs ul {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  color: var(--steel);
}
.programs li { margin: 0 0 8px; }
.programs li:last-child { margin-bottom: 0; }
@media (max-width: 720px) { .programs { grid-template-columns: 1fr; } .programs article { min-height: 0; } }

.form-card {
  background: #ebe6db;
  padding: 28px;
  border: 1px solid var(--line);
}
.form-card .btn { width: 100%; }
.hp {
  position: absolute;
  left: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.note[data-kind="ok"] { color: var(--ember-dark); }
.note[data-kind="fail"] { color: #8a2a12; }
label { display: block; font-size: 13px; margin: 0 0 6px; font-family: "Oswald", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }
input, textarea, select {
  width: 100%;
  margin: 0 0 16px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
}
.note { font-size: 13px; color: var(--steel); }
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  font-size: 14px;
  color: var(--steel);
}
.langbar { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 10px; }
.langbar a { text-decoration: none; }
.langbar a[aria-current="page"] { color: var(--ember); }
