:root {
  --pistachio: #98c218;
  --pistachio-2: #97c217;
  --atlantis: #98b732;
  --sushi: #84a125;
  --white: #ffffff;
  --black: #000000;
  --ship-gray: #3f3f3f;
  --granite-gray: #696969;
  --gunsmoke: #838383;
  --line: #e6ead8;
  --field: #f6f7f1;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ship-gray);
  font-family: "Segoe UI", "SegoeUI-Regular", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.kontakt-page {
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img.wordmark-img {
  height: 52px;
  width: auto;
  display: block;
}

.aside-wordmark {
  height: 36px;
  width: auto;
  display: block;
  margin: 0 0 12px;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 16px;
  color: var(--ship-gray);
}

.nav a:hover { color: var(--pistachio); }
.nav a.is-active { color: var(--pistachio); font-weight: 600; }

.hero {
  padding: 48px 0 28px;
}

.kicker {
  font-family: "Segoe UI", Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pistachio);
  margin: 0 0 14px;
  font-weight: 600;
}

h1 {
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  color: var(--ship-gray);
  margin: 0 0 16px;
  max-width: 18ch;
}

.lead {
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--granite-gray);
  max-width: 42ch;
  margin: 0;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 72px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}

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

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }

label {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gunsmoke);
  font-weight: 600;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ship-gray);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: "Segoe UI", Helvetica, sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea { min-height: 160px; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--pistachio);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(152, 194, 24, 0.22);
}

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

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--granite-gray);
  line-height: 1.45;
}

.check input { margin-top: 3px; accent-color: var(--pistachio); }
.check a { color: var(--pistachio); text-decoration: underline; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--pistachio);
  color: var(--white);
  font-family: "Segoe UI", Helvetica, sans-serif;
  font-size: 18px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 400;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--sushi); }
.btn:disabled { opacity: 0.6; cursor: wait; }

.status {
  font-size: 14px;
  color: var(--granite-gray);
  min-height: 1.2em;
}

.status.ok { color: var(--sushi); font-weight: 600; }
.status.err { color: #b42318; }

.aside {
  padding: 8px 4px 0;
}

.aside h2 {
  font-family: "Lato", Helvetica, sans-serif;
  font-size: 20px;
  color: var(--pistachio);
  margin: 0 0 12px;
}

.aside p {
  margin: 0 0 18px;
  color: var(--granite-gray);
  line-height: 1.55;
  font-size: 16px;
}

.aside .block {
  margin-bottom: 22px;
}

.aside a { color: var(--ship-gray); }
.aside a:hover { color: var(--pistachio); }

.tag {
  display: inline-block;
  background: #eef6d2;
  color: var(--sushi);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
  color: var(--gunsmoke);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a:hover { color: var(--pistachio); }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  h1 { max-width: none; }
  .form-grid { grid-template-columns: 1fr; }
  .site-header { flex-direction: column; align-items: flex-start; }
}