/* ============================================================
   КУДА НА РЫБАЛКУ — Web Design System
   Matches React Native app theme exactly
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Montserrat:wght@400;500;600;700;800;900&family=PT+Sans:ital,wght@0,400;0,700;1,400&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Brand colors (mirror app theme) */
  --bg:           #F7F9FC;
  --bg-card:      #FFFFFF;
  --bg-surface:   #EEF2F7;
  --bg-dark:      #0B1220;

  --primary:      #1A56DB;
  --primary-light:#EBF2FF;
  --primary-dark: #1342B8;

  --success:      #099268;
  --success-light:#E6F9F3;
  --warning:      #E67700;
  --warning-light:#FFF3E0;
  --error:        #C92A2A;
  --error-light:  #FFF5F5;

  --premium:      #D4A017;
  --premium-light:#FFF8E1;
  --premium-dark: #B8860B;

  --text-primary:   #111928;
  --text-secondary: #4B5563;
  --text-muted:     #9CA3AF;
  --text-inverse:   #FFFFFF;

  --border:       #E5E7EB;
  --border-strong:#D1D5DB;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'PT Sans', sans-serif;
  --font-logo:    'Russo One', sans-serif;

  /* Spacing */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  12px;
  --sp-lg:  16px;
  --sp-xl:  20px;
  --sp-2xl: 24px;
  --sp-3xl: 32px;
  --sp-4xl: 48px;
  --sp-5xl: 64px;

  /* Border radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.10), 0 4px 10px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.14), 0 8px 20px rgba(0,0,0,.08);

  /* Layout */
  --max-width: 1280px;
  --nav-height: 64px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

input, textarea, select, button { font-family: inherit; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-2xl);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--sp-lg); }
}

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-2xl);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-2xl);
}

.nav-logo {
  font-family: var(--font-logo);
  font-size: 22px;
  color: var(--primary);
  letter-spacing: -0.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-logo span.fish { font-size: 20px; }
.nav-logo:hover { text-decoration: none; }

.nav-logo-img {
  height: 50px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  flex: 1;
}

.nav-link {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.nav-link:hover { background: var(--bg-surface); color: var(--text-primary); text-decoration: none; }
.nav-link.active { background: var(--primary-light); color: var(--primary); }

.nav-spacer { flex: 1; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .3s;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-lg);
  flex-direction: column;
  gap: var(--sp-sm);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { font-size: 16px; padding: 10px 14px; }

@media (max-width: 768px) {
  .nav-links, .nav-spacer { display: none; }
  .nav-burger { display: flex; }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(26,86,219,.35);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--primary-light);
  text-decoration: none;
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-surface);
  color: var(--text-primary);
  text-decoration: none;
}

.btn-premium {
  background: var(--premium);
  color: #fff;
}
.btn-premium:hover:not(:disabled) {
  background: var(--premium-dark);
  box-shadow: 0 4px 14px rgba(212,160,23,.4);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.btn-danger {
  background: var(--error-light);
  color: var(--error);
}

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-xl { padding: 16px 36px; font-size: 18px; border-radius: var(--r-lg); }
.btn-block { width: 100%; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* ── Badges / Pills ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
}
.badge-primary { background: var(--primary-light); color: var(--primary); border: 1px solid rgba(26,86,219,.15); }
.badge-success { background: var(--success-light); color: var(--success); border: 1px solid rgba(9,146,104,.15); }
.badge-warning { background: var(--warning-light); color: var(--warning); border: 1px solid rgba(230,119,0,.15); }
.badge-error   { background: var(--error-light);   color: var(--error);   border: 1px solid rgba(201,42,42,.15); }
.badge-premium { background: var(--premium-light); color: var(--premium); border: 1px solid rgba(212,160,23,.25); }
.badge-muted   { background: var(--bg-surface);    color: var(--text-muted); border: 1px solid var(--border); }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 15px;
  color: var(--text-primary);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
.form-input.error { border-color: var(--error); }
.form-input::placeholder { color: var(--text-muted); }

/* Password toggle (show/hide) */
.input-with-toggle { position: relative; }
.input-with-toggle .form-input { padding-right: 44px; }
.pass-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 18px;
  color: var(--text-muted); padding: 4px 6px; line-height: 1;
  opacity: .6; transition: opacity .2s;
}
.pass-toggle:hover { opacity: 1; }
.pass-toggle.active { opacity: 1; color: var(--primary); }

.form-error {
  font-size: 12px;
  color: var(--error);
  font-weight: 500;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.form-textarea { resize: vertical; min-height: 100px; }

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}
.form-checkbox-label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Stars ──────────────────────────────────────────────────── */
.stars {
  display: inline-flex;
  gap: 2px;
}
.star { font-size: 14px; color: #D1D5DB; }
.star.filled { color: #F59E0B; }

/* ── Tabs ───────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.tab {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.tab.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.tab:hover:not(.active) { color: var(--text-secondary); }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  border-width: 1px;
  border-style: solid;
}
.alert-error   { background: var(--error-light);   color: var(--error);   border-color: rgba(201,42,42,.2); }
.alert-success { background: var(--success-light); color: var(--success); border-color: rgba(9,146,104,.2); }
.alert-warning { background: var(--warning-light); color: var(--warning); border-color: rgba(230,119,0,.2); }
.alert-info    { background: var(--primary-light); color: var(--primary); border-color: rgba(26,86,219,.2); }

/* ── Loading ─────────────────────────────────────────────────── */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-lg { width: 40px; height: 40px; }

@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-md);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Section heading ─────────────────────────────────────────── */
.section-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: var(--sp-sm);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: var(--sp-md);
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(.97);
  transition: transform .25s;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-header {
  padding: var(--sp-2xl) var(--sp-2xl) var(--sp-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}
.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-surface);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: var(--border); color: var(--text-primary); }
.modal-body { padding: var(--sp-2xl); }
.modal-footer {
  padding: var(--sp-lg) var(--sp-2xl) var(--sp-2xl);
  display: flex;
  gap: var(--sp-sm);
  justify-content: flex-end;
}

/* ── Table ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th {
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  text-align: left;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-surface); }

/* ── Toast ──────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--text-primary);
  color: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  min-width: 280px;
  animation: toast-in .3s ease;
  max-width: 360px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
.toast.warning { background: var(--warning); }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

/* ── Rating stars interactive ────────────────────────────────── */
.star-input { display: flex; gap: 4px; }
.star-input label {
  font-size: 28px;
  cursor: pointer;
  color: #D1D5DB;
  transition: color .15s;
}
.star-input input[type="radio"] { display: none; }
/* Highlight checked label and all labels before it (left-to-right fill) */
.star-input input:checked + label,
.star-input label:has(~ input:checked) { color: #F59E0B; }
/* Hover: highlight hovered label and all labels before it */
.star-input label:hover,
.star-input label:has(~ label:hover) { color: #F59E0B; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}
.page-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--r-md);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Utility ─────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--sp-sm); }
.gap-md { gap: var(--sp-md); }
.gap-lg { gap: var(--sp-lg); }
.gap-xl { gap: var(--sp-xl); }
.gap-2xl { gap: var(--sp-2xl); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.mt-2xl { margin-top: var(--sp-2xl); }
.mt-3xl { margin-top: var(--sp-3xl); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary-color { color: var(--primary); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.font-heading { font-family: var(--font-heading); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Page layout (with fixed nav) ───────────────────────────── */
.page-body { padding-top: var(--nav-height); min-height: 100vh; }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5xl) var(--sp-2xl);
  gap: var(--sp-md);
  text-align: center;
}
.empty-state-icon { font-size: 48px; }
.empty-state-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.empty-state-text { color: var(--text-secondary); max-width: 320px; }

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-2xl) 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: var(--sp-4xl) 0 var(--sp-3xl);
  margin-top: var(--sp-5xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-3xl);
}
.footer-logo {
  font-family: var(--font-logo);
  font-size: 24px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--sp-lg);
  text-decoration: none;
}
.footer-logo-img {
  height: 110px;
  width: auto;
  display: block;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  max-width: 280px;
}
.footer-col-title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--sp-lg);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: var(--sp-3xl);
  padding-top: var(--sp-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,.35);
  gap: var(--sp-lg);
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Skip Link ───────────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100%;
  left: var(--sp-md);
  z-index: 10000;
  background: var(--primary);
  color: #fff;
  padding: var(--sp-sm) var(--sp-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus {
  top: var(--sp-md);
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

/* ── Password Strength Meter ─────────────────────────────────── */
.pass-strength-wrap {
  margin-top: var(--sp-xs);
}
.pass-strength-track {
  height: 4px;
  background: var(--bg-surface);
  border-radius: 2px;
  overflow: hidden;
}
.pass-strength-bar {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width .3s, background .3s;
  background: var(--error);
}
.pass-strength-label {
  font-size: 12px;
  margin-top: 2px;
  color: var(--text-secondary);
}

/* ── Focus Visible ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(26,86,219,.35);
}

.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}

.nav-link:focus-visible {
  background: var(--primary-light);
  outline-offset: -2px;
}

.page-btn:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.2);
}

/* ── Reduced Motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Print Styles ────────────────────────────────────────────── */
@media print {
  .navbar, .footer, .mobile-nav, .skip-link,
  .cta-section, .fab, .sidebar { display: none !important; }

  body { background: #fff; color: #000; font-size: 12pt; }
  .container { max-width: 100%; padding: 0; }
  a { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #555; }
  a[href^="javascript:"]::after, a[href^="#"]::after { content: ""; }
  img { max-width: 100% !important; }
}

/* ── Accessibility: reduced motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
