/* =========================================================
   BUTTONS AND FORM CONTROLS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 2.75rem; padding: 0.6rem 1.25rem;
  font: 600 1rem/1.15 var(--font-body); text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--r); cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: #273854; background: color-mix(in srgb, var(--primary) 88%, var(--text)); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-quiet { background: transparent; color: var(--text); padding-inline: var(--s3); }
.btn-quiet:hover { background: rgba(28, 43, 67, 0.1); background: color-mix(in srgb, var(--text) 10%, transparent); }
.btn-nav-auth { background: var(--accent); color: var(--band); border-color: var(--accent); font-weight: 600; }
.btn-nav-auth:hover { background: #a19467; background: color-mix(in srgb, var(--accent) 88%, var(--text)); border-color: #a19467; border-color: color-mix(in srgb, var(--accent) 88%, var(--text)); color: var(--band); }
.btn-sm { min-height: 2.5rem; padding: 0.4rem 1rem; font-size: 0.9375rem; }
.lock { flex: none; width: 0.9em; height: 0.9em; }
.is-authed .lock, .is-authed .lock-note { display: none; }

.field { display: grid; gap: var(--s2); }
.field > label, legend { font: 700 11px/16px var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hint { color: var(--muted); font-size: var(--fs-sm); }
.opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: normal; }
input, select, textarea {
  width: 100%; min-height: 2.75rem; padding: 0.65rem 0.85rem;
  font: 400 1rem/1.4 var(--font-body); color: #F6F4EE;
  background: #151C27; border: 1px solid var(--border); border-radius: var(--r);
  transition: background-color 0.15s, border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #2E3541;
}
textarea { min-height: 8rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: #969083; opacity: 0.8; }
[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: var(--fs-sm); font-weight: 600; }
.form-grid { display: grid; gap: var(--s5); background: var(--surface); padding: var(--s6); border-radius: 0.5rem; border: 1px solid var(--border); }
.form-row { display: grid; gap: var(--s5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: grid; gap: var(--s2); margin-top: var(--s2); }
.choice { display: flex; align-items: flex-start; gap: var(--s3); min-height: 2.75rem; padding: var(--s2) 0; cursor: pointer; }
.choice input { width: 1.25rem; min-height: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--primary); flex: none; }
.pw { position: relative; }
.pw input { padding-right: 5.5rem; }
.pw button { position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); }
.form-status { padding: var(--s4); border-radius: var(--r); border: 1.5px solid var(--border); background: var(--raised); font-weight: 500; }
.form-status.ok { border-color: var(--ok); }
.form-status.bad { border-color: var(--error); }

.cookie-banner {
  position: sticky;
  bottom: 0;
  z-index: 80;
  border-top: 1px solid var(--border);
  background: rgba(12, 17, 29, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.18);
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding-block: var(--s4);
}
.cookie-copy { display: grid; gap: var(--s2); }
.cookie-copy h2 { margin: 0; font-size: 1.05rem; }
.cookie-copy p { margin: 0; color: var(--muted); max-width: 48rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (max-width: 52rem) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1 1 auto; }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand-logo { display: block; height: 4.25rem; width: auto; }
.menu-btn { display: none; }
.nav { display: flex; align-items: center; gap: var(--s4); }
.nav-links { display: flex; align-items: center; gap: var(--s1); }
.nav-links a { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0 var(--s3); text-decoration: none; font-weight: 600; border-radius: var(--r); transition: background-color .15s, color .15s, border-color .15s; }
.nav-links a:not(.btn):hover { background: var(--text); color: var(--bg); }
.instagram-icon { display: inline-block; vertical-align: middle; width: 1.25rem; height: 1.25rem; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.45em; }
.nav-divider { width: 1px; height: 1.5rem; background: var(--border); margin-inline: var(--s2); }
.nav-actions { display: flex; align-items: center; gap: var(--s2); }
.nav-actions .btn { white-space: nowrap; }
.greeting { font-weight: 600; padding-inline: var(--s2); max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 75rem) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: var(--s4); padding: var(--s4) clamp(1rem, 4vw, 2rem) var(--s5); background: var(--bg); border-bottom: 1px solid var(--border); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { min-height: 3rem; }
  .nav-divider { display: none; }
  .nav-actions { flex-wrap: wrap; }
  .greeting { max-width: none; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { padding-block: var(--s7) var(--s6); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); gap: var(--s6); }
.footer-grid h2 { font: 700 var(--fs-sm)/1.2 var(--font-body); color: var(--muted); letter-spacing: 0; margin-bottom: var(--s3); }
.footer-grid li + li { margin-top: var(--s2); }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-logo { display: block; height: 6.5rem; width: auto; }
.footer-brand p { color: var(--muted); margin-top: var(--s3); max-width: 22rem; }
.footer-base { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between; color: var(--muted); font-size: var(--fs-sm); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.footer-legal-links a { text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 52rem) { .footer-legal-links { flex-direction: column; gap: var(--s2); } }
@media (max-width: 52rem) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
