
:root {
  --bg: #0e0f13;
  --panel: #14161d;
  --text: #e8ebf0;
  --muted: #a6adbb;
  --brand: #5aa7ff;
  --accent: #5be0d4;
  --line: #232936;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1400px 800px at 20% -10%, #162034 0%, #0e0f13 45%);
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: rgba(20,22,29,0.6);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.logo { width: 28px; height: 28px; }
.site-nav .links a { margin-left: 18px; color: var(--text); opacity: 0.9; }
.site-nav .links a:hover { opacity: 1; }

.hero {
  padding: 80px 20px 60px; text-align: center;
  background: linear-gradient(180deg, rgba(90,167,255,0.08), rgba(0,0,0,0) 40%);
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero p { margin: 0 auto 22px; max-width: 720px; color: var(--muted); font-size: 18px; }
.cta { display: inline-block; padding: 12px 18px; border-radius: 14px; background: var(--brand); color: white; font-weight: 700; }
.cta.ghost { background: transparent; border: 1px solid var(--brand); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; padding: 24px 20px 40px; max-width: 1100px; margin: 0 auto; }
.card { background: var(--panel); border: 1px solid var(--line); padding: 18px; border-radius: 18px; }
.card h2 { margin-top: 4px; font-size: 18px; }

.page { max-width: 900px; margin: 40px auto; padding: 0 20px; }
.page h1 { font-size: 36px; margin-top: 0; }
.page ul { padding-left: 20px; }

.contact-form { display: grid; gap: 16px; max-width: 600px; }
.contact-form label { display: grid; gap: 6px; position: relative; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #0f1219; color: var(--text);
  font-family: inherit; font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(90, 167, 255, 0.1);
}
.contact-form input.error, .contact-form textarea.error {
  border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}
.contact-form button {
  padding: 12px 16px; border-radius: 14px; border: 0; background: var(--accent);
  color: #0b0c10; font-weight: 800; cursor: pointer; position: relative;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  min-height: 44px; display: flex; align-items: center; justify-content: center;
}
.contact-form button:hover:not(:disabled) {
  background: #4dd4c7;
}
.contact-form button:disabled {
  opacity: 0.7; cursor: not-allowed;
}

/* Error messages */
.error-message {
  color: #ff6b6b; font-size: 12px; margin-top: 4px; display: block;
  min-height: 16px; line-height: 1.3;
}

/* Character counter */
.character-count {
  font-size: 12px; color: var(--muted); text-align: right; margin-top: 4px;
}
.character-count.over-limit {
  color: #ff6b6b;
}

/* Form messages */
.form-message {
  padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500;
  margin-top: 8px; text-align: center;
}
.form-message.success {
  background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}
.form-message.error {
  background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
}

/* Loading spinner */
.loading-spinner {
  display: inline-flex; align-items: center; gap: 8px;
}
.loading-spinner::before {
  content: ''; width: 16px; height: 16px; border: 2px solid #0b0c10;
  border-top: 2px solid transparent; border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.contact-details { margin-top: 24px; color: var(--muted); }

.cta-strip {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin: 10px auto 40px; max-width: 1100px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(90deg, rgba(91,224,212,0.08), rgba(90,167,255,0.08));
}

.site-footer {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 20px 10px; background: rgba(20,22,29,0.6);
}
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.foot-brand { font-weight: 800; font-size: 16px; }
.foot-head { font-weight: 700; margin-bottom: 10px; }
.site-footer .legal { border-top: 1px solid var(--line); max-width: 1100px; margin: 16px auto 0; padding-top: 12px; color: var(--muted); font-size: 14px; }

.cookie-banner {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); width: min(980px, calc(100% - 24px));
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: none;
}
.cookie-content { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions button {
  padding: 10px 14px; border-radius: 12px; border: 0; cursor: pointer; font-weight: 700;
}
.cookie-actions .secondary { background: transparent; border: 1px solid var(--line); color: var(--text); }
#acceptCookies { background: var(--brand); color: white; }
