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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #2f3437;
  background: #f8f4ef;
}

a {
  text-decoration: none;
  color: #4c5b52;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  /*width: 32px;*/
  height: 32px;
}

.site-name {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.header-nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: #4c5b52;
  font-size: 15px;
}

.nav-link-active {
  font-weight: 600;
}

.main {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-center {
  align-items: center;
}

.main.main-center {
  background: url('/_static/image/background.jpg');
  background-repeat: no-repeat;
  background-size: cover;
}

.hero {
  max-width: 560px;
  padding: 40px 24px;
  border: 1px solid #6ca46b;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(10px);
  background: #ffffffac;
}

.hero-title {
  text-align: center;
  font-size: 40px;
  margin: 0 0 8px;
}

.hero-subtitle {
  margin: 0 0 32px;
  font-size: 17px;
  color: #5e6a60;
}

.plot-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-label {
  font-size: 14px;
  color: #4c5b52;
}

.field-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.field-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccd3c9;
  font-size: 16px;
}

.field-input:focus {
  outline: none;
  border-color: #6ca46b;
  box-shadow: 0 0 0 1px rgba(108, 164, 107, 0.15);
}

.field-hint {
  margin: 0;
  font-size: 13px;
  color: #7a847c;
}

.btn {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: #6ca46b;
  color: #ffffff;
}

.btn-primary:hover {
  background: #5a9159;
}

.btn-secondary {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  border: 1px solid #c2c9c0;
  background: transparent;
  color: #4c5b52;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.02);
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
}

.card-title {
  margin: 0 0 4px;
  font-size: 24px;
}

.card-subtitle {
  margin: 0 0 24px;
  font-size: 15px;
  color: #5e6a60;
}

.qr-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.card table { width: 100%}
.card table td { padding: 8px 0}
.card table td:last-child { text-align: right}

.qr-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  border: 2px dashed #cdd4cc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9da7a0;
  font-size: 14px;
}

.card-info {
  margin: 0 0 4px;
  font-size: 14px;
}

.card-hint {
  margin: 8px 0 20px;
  font-size: 13px;
  color: #7a847c;
}

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

.footer {
  padding: 16px 24px 24px;
  font-size: 13px;
  color: #7a847c;
  text-align: center;
}

.footer-text {
  margin: 0;
}

/* Небольшая адаптивность */
@media (max-width: 640px) {
  .header {
    padding: 12px 16px;
  }
  .hero {
    padding: 24px 16px;
  }
  .field-row {
    flex-direction: column;
    align-items: stretch;
  }
  .card {
    margin: 24px 16px;
  }
}
