@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --green: #2e7d32;
  --green-dark: #1f5b24;
  --text: #1f221f;
  --muted: #5a635d;
  --bg: #f4f6f3;
  --panel: #ffffff;
  --border: #e1e5df;
  --shadow: 0 14px 30px rgba(22, 33, 23, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
}

.site-header {
  background: linear-gradient(90deg, #1e4f25, var(--green));
  color: #fff;
}

.header-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
}

.header-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.brand h1 {
  margin: 0;
  font-family: 'Merriweather', serif;
  font-size: 38px;
  letter-spacing: 0.3px;
}

.brand p {
  margin: 8px 0 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.brand-logo {
  width: 120px;
  height: auto;
  border-radius: 18px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.site-nav a {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  transition: background 0.2s ease, border 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.9);
}

.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  display: grid;
  gap: 24px;
}

.card {
  background: var(--panel);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 24px 40px;
  box-shadow: var(--shadow);
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 20px;
  align-items: start;
}

.info-side {
  display: grid;
  gap: 12px;
  padding-top: 40px;
}

.info-side img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #e2e7e0;
  box-shadow: 0 10px 20px rgba(22, 33, 23, 0.08);
}

.card h2 {
  margin-top: 6px;
  margin-bottom: 2px;
  font-size: 22px;
  color: var(--green-dark);
}

.card h2:not(:first-child) {
  margin-top: 12px;
}

.card h2 + p {
  margin-top: 0;
}

h3 {
  margin: 18px 0 8px;
}

ul {
  line-height: 1.5;
  padding-left: 20px;
  margin: 0 0 8px;
}

li {
  margin-bottom: 6px;
}

.buttons {
  margin-top: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  background: #fff;
  color: var(--green);
}

.btn.download {
  background: var(--green);
  color: #fff;
}

.qr {
  text-align: center;
  margin: 16px 0 6px;
}

.qr img {
  max-width: 180px;
}

.qr p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f7f9f6;
  border: 1px solid #e2e7e0;
  border-radius: 14px;
  padding: 16px;
}

.qr.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
}

.qr-empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  padding: 0 10px;
}

.btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.feedback-section {
  border-left: 4px solid rgba(46, 125, 50, 0.2);
}

.feedback-form {
  display: grid;
  gap: 8px;
}

.feedback-form textarea {
  width: 100%;
  resize: vertical;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #c9c9c9;
  font-family: inherit;
  font-size: 14px;
}

.feedback-email {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #c9c9c9;
  font-family: inherit;
  font-size: 14px;
}

.feedback-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.form-status {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
}

.comment-log {
  margin-top: 14px;
  max-height: 140px;
  overflow-y: auto;
  text-align: left;
  padding-right: 6px;
  border-left: 3px solid rgba(46, 125, 50, 0.18);
}

.comment-title {
  margin: 16px 0 0;
  font-size: 16px;
}

.comment {
  padding: 10px 6px 10px 12px;
  border-bottom: 1px solid #efefef;
}

.comment:last-child {
  border-bottom: none;
}

.comment p {
  margin: 0;
}

.comment-empty {
  margin: 0;
  color: #666;
  padding: 10px 6px 10px 12px;
}

.comment-log::-webkit-scrollbar {
  width: 10px;
}

.comment-log::-webkit-scrollbar-thumb {
  background: rgba(46, 125, 50, 0.35);
  border-radius: 8px;
}

.comment-log::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

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

.site-footer {
  background: #e7ebe6;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-size: 14px;
}

.github-link {
  text-decoration: none;
  color: var(--green-dark);
  font-weight: 600;
}

.github-link:hover,
.github-link:focus {
  text-decoration: underline;
}

.inskjut {
  padding-left: 12px;
  list-style: none;
}

.punktfri {
  list-style: none;
}

@media (max-width: 700px) {
  .header-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .feedback-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .info-layout {
    grid-template-columns: 1fr;
  }
}
