/* ======= TOKENS, RESET, TYPOGRAPHY ======= */
:root {
  --tt-blue: #2463eb;
  --tt-blue-hover: #1d4ed8;
  --tt-navy: #0f3c68;
  --tt-navy-deep: #0b2d4e;
  --tt-bg: #eef2f8;
  --tt-surface: #ffffff;
  --tt-text: #0f172a;
  --tt-muted: #64748b;
  --tt-border: #e2e8f0;
  --tt-danger: #ef4444;
  --tt-danger-hover: #dc2626;
  --tt-radius: 14px;
  --tt-radius-sm: 12px;
  --tt-shadow: 0 1px 2px rgba(15, 60, 104, 0.05), 0 8px 24px rgba(15, 60, 104, 0.07);
  --tt-shadow-sm: 0 1px 3px rgba(15, 60, 104, 0.08);
  --tt-tap: 44px;
  --tt-space: 8px;
  --tt-sidebar: 240px;
  --tt-topbar: 56px;
  --tt-phone: 800px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--tt-bg);
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Inter, Roboto, Arial, sans-serif;
  background: var(--tt-bg);
  color: var(--tt-text);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas, video {
  max-width: 100%;
  height: auto;
}

h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--tt-navy);
  text-transform: uppercase;
  font-weight: 650;
}

input, select, textarea, button {
  font-family: inherit;
  max-width: 100%;
}

input, select, textarea {
  box-sizing: border-box;
}

button {
  touch-action: manipulation;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalBounce {
  0% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #c5d4e8;
  border-radius: 8px;
}

@media (max-width: 800px) {
  body {
    font-size: 15px;
    flex-direction: column;
  }
}
