:root {
  --green: #84c555;
  --teal: #18a9b1;
  --teal-text: #0f7a83;
  --title: #1f2328;
  --text: #3d4248;
  --muted: #6b7178;
  --rule: #e3e6e8;
  --panel: #f3f8f5;
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #ffffff;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.top {
  background: #ffffff;
  border-bottom: 5px solid transparent;
  border-image: linear-gradient(90deg, var(--green), var(--teal)) 1;
}

.top-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 24px 0;
}

.brand img {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 10px;
}

nav {
  display: flex;
  gap: 4px;
}

nav a {
  display: block;
  min-width: 104px;
  padding: 10px 18px 11px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  color: var(--title);
  border-radius: 3px 3px 0 0;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
  color: #ffffff;
  background-color: var(--green);
  text-decoration: none;
}

main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

main.policy {
  max-width: 768px;
}

h1,
h2,
h3 {
  color: var(--title);
  line-height: 1.25;
}

h1 {
  margin: 0 0 16px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  margin: 40px 0 12px;
  font-size: 21px;
  font-weight: 650;
}

h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 600;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

a {
  color: var(--teal-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead {
  max-width: 680px;
  font-size: 19px;
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin: -8px 0 40px;
}

.hero h1 {
  font-size: 40px;
}

.hero-canvas {
  display: block;
  width: 100%;
  height: 400px;
}

.button {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 24px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green), var(--teal));
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.button:hover,
.button:focus-visible {
  filter: brightness(0.95);
  text-decoration: none;
}

.updated {
  color: var(--muted);
  font-size: 15px;
}

.commitment {
  margin: 24px 0 8px;
  padding: 16px 20px;
  border-left: 4px solid var(--teal);
  background: var(--panel);
}

.cookie-table {
  width: 100%;
  margin: 8px 0 20px;
  border-collapse: collapse;
  font-size: 15px;
}

.cookie-table th,
.cookie-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  color: var(--title);
  font-weight: 600;
}

.cookie-table td:last-child {
  white-space: nowrap;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  margin: 0;
}

.services li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--title);
}

.contact {
  margin-top: 48px;
  padding: 28px 28px 24px;
  border-left: 4px solid var(--teal);
  background: var(--panel);
  scroll-margin-top: 24px;
}

.contact h2 {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

.contact-open {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.contact-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.45s ease,
    opacity 0.35s ease;
}

.contact-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.contact-panel-inner {
  min-height: 0;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .contact-panel {
    transition: none;
  }
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin-top: 8px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--title);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c9d1d6;
  border-radius: 4px;
  background: #ffffff;
  font: inherit;
  font-size: 15px;
  color: var(--title);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

.field textarea {
  resize: vertical;
}

.field-wide {
  grid-column: 1 / -1;
}

.field-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.form-actions .button {
  margin-top: 0;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.form-actions .button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  flex-basis: 100%;
  margin: 0;
  font-size: 15px;
}

.form-status[data-kind="success"] {
  color: #2f7d32;
}

.form-status[data-kind="error"] {
  color: #b3261e;
}

.form-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

footer {
  padding: 18px 24px 22px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}

footer a {
  color: var(--muted);
}

.cookie-settings {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

#cc-main {
  --cc-font-family: var(--sans);
  --cc-modal-border-radius: 6px;
  --cc-btn-border-radius: 4px;
  --cc-primary-color: var(--title);
  --cc-secondary-color: var(--text);
  --cc-link-color: var(--teal-text);
  --cc-btn-primary-bg: var(--teal-text);
  --cc-btn-primary-border-color: var(--teal-text);
  --cc-btn-primary-hover-bg: #0b5f66;
  --cc-btn-primary-hover-border-color: #0b5f66;
  --cc-btn-secondary-bg: var(--panel);
  --cc-btn-secondary-border-color: var(--rule);
  --cc-btn-secondary-hover-bg: #e6f0ea;
  --cc-btn-secondary-hover-border-color: var(--rule);
  --cc-toggle-on-bg: var(--teal-text);
  --cc-cookie-category-block-bg: var(--panel);
  --cc-cookie-category-block-hover-bg: #e6f0ea;
}

@media (max-width: 600px) {
  .top-inner {
    padding: 10px 16px 0;
  }

  .brand img {
    width: 68px;
    height: 68px;
  }

  nav a {
    min-width: 0;
    padding: 9px 14px 10px;
  }

  main {
    padding: 32px 16px 48px;
  }

  h1,
  .hero h1 {
    font-size: 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-canvas {
    height: 280px;
  }

  .services,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 22px 18px 20px;
  }

  .cookie-table {
    font-size: 14px;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 6px;
  }
}
