:root {
  --bg: #f3f7fb;
  --surface: #ffffff;
  --line: #dce5ef;
  --text: #112031;
  --accent: #0d6efd;
  --accent-2: #00a884;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); border-bottom: 1px solid var(--line); padding: 1rem 2rem;
  gap: 1rem;
}
.navbar nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
a { color: var(--accent); text-decoration: none; }
.brand { font-weight: 700; font-size: 1.2rem; color: var(--text); }
.container { max-width: 1100px; margin: 1.5rem auto; padding: 0 1rem 2rem; }
.hero { background: linear-gradient(135deg, #fff, #eef4ff); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; }
.cta-row { display: flex; gap: .8rem; margin-top: 1rem; flex-wrap: wrap; }
.btn, .btn-outline, .btn-small {
  border: none; border-radius: 10px; padding: .7rem 1rem; cursor: pointer; display: inline-block;
}
.btn { background: var(--accent); color: #fff; }
.btn-outline { border: 1px solid var(--accent); color: var(--accent); }
.btn-small { background: var(--accent-2); color: #fff; padding: .4rem .8rem; }
.btn.secondary { background: #4b5563; color: #fff; }
.btn.danger { background: #dc2626; color: #fff; }
.grid { display: grid; gap: 1rem; margin-top: 1rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.link-card { color: inherit; }
.form-wrap { max-width: 700px; }
.form-grid { display: grid; gap: .8rem; }
.form-grid.two { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
input, textarea, select {
  margin-top: .3rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .6rem;
  background: #fff;
}
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 680px; }
th, td { text-align: left; padding: .6rem; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; width: 100%; }
.inline-form { display: inline-block; }
.link-button {
  border: 0;
  background: none;
  color: var(--accent);
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
}
.link-button:hover { text-decoration: underline; }
.inline-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.stack-list { display: grid; gap: .75rem; padding-left: 1.25rem; }
.stack-list li { overflow-wrap: anywhere; }
.provider-hint { margin: .5rem 0 0; color: #334155; }
.badge { background: #e8f0ff; color: #234ea5; padding: .2rem .55rem; border-radius: 999px; }
.flash-stack { display: grid; gap: .5rem; margin-bottom: 1rem; }
.flash { border-radius: 10px; padding: .7rem 1rem; }
.flash.success { background: #dcfce7; }
.flash.danger { background: #fee2e2; }
.flash.warning { background: #fef3c7; }
.flash.info { background: #e0f2fe; }

@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .container {
    margin-top: 1rem;
  }
}

@media (max-width: 640px) {
  .card {
    padding: .85rem;
  }

  .btn,
  .btn-outline,
  .btn-small {
    width: 100%;
    text-align: center;
  }

  .inline-form,
  .inline-actions {
    width: 100%;
  }

  .inline-actions .btn,
  .inline-actions .btn-outline {
    width: auto;
  }

  .cta-row > * {
    flex: 1 1 100%;
  }
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
  display: flex;
  justify-content: flex-end;
}

.footer-language-form {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .45rem .65rem;
}

.footer-language-form label {
  font-size: .95rem;
}

.footer-language-form select {
  margin-top: 0;
  width: auto;
  min-width: 110px;
}

@media (max-width: 640px) {
  .site-footer {
    justify-content: stretch;
  }

  .footer-language-form {
    width: 100%;
    justify-content: space-between;
  }
}
