/* koordinat.online — base.css */

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

:root {
  --bg:        #f7f8fa;
  --bg-panel:  #ffffff;
  --bg-dark:   #1a1d23;
  --accent:    #2563eb;
  --accent-h:  #1d4ed8;
  --text:      #1e2330;
  --text-muted:#6b7280;
  --border:    #e2e6ed;
  --radius:    8px;
  --shadow:    0 1px 4px rgba(0,0,0,.08);
  --font:      'Inter', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.site-nav {
  background: var(--bg-dark);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .logo {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.5px;
}
.site-nav .logo span { color: #60a5fa; }
.lang-switcher {
  display: flex;
  gap: 4px;
}
.lang-switcher a {
  color: #9ca3af;
  font-size: .85rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.lang-switcher a:hover, .lang-switcher a.active {
  color: #fff;
  background: rgba(255,255,255,.1);
  text-decoration: none;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--bg-dark);
  color: #fff;
  padding: 48px 24px 40px;
  text-align: center;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
}
.hero p {
  color: #9ca3af;
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}

/* ── Tool wrapper ────────────────────────────────────────────────────────── */
.tool-section {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 16px;
}

.tool-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 768px) {
  .tool-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
}

/* ── Panel ───────────────────────────────────────────────────────────────── */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.panel-title {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: none;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  width: 100%;
  justify-content: center;
  padding: 10px;
  font-size: 1rem;
}
.btn-primary:hover { background: var(--accent-h); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); }
.btn-sm { padding: 5px 10px; font-size: .8rem; }

/* ── Form elements ───────────────────────────────────────────────────────── */
label { font-size: .88rem; font-weight: 500; color: var(--text-muted); display: block; margin-bottom: 4px; }
textarea, select, input[type=text] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  outline: none;
}
textarea:focus, select:focus, input:focus { border-color: var(--accent); }
textarea { resize: vertical; font-family: 'Courier New', monospace; font-size: .85rem; }

/* ── Info/FAQ sections ───────────────────────────────────────────────────── */
.info-section {
  max-width: 860px;
  margin: 48px auto;
  padding: 0 16px;
}
.info-section h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}
.info-section p { color: var(--text-muted); margin-bottom: 12px; }

.faq-list { list-style: none; }
.faq-list li { margin-bottom: 20px; }
.faq-list li strong { display: block; margin-bottom: 4px; }
.faq-list li p { color: var(--text-muted); }

/* ── CTA ─────────────────────────────────────────────────────────────────── */
.cta-block {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 48px auto;
  max-width: 700px;
}
.cta-block h3 { font-size: 1.3rem; margin-bottom: 8px; }
.cta-block p { opacity: .85; margin-bottom: 20px; }
.cta-block a {
  background: #fff;
  color: var(--accent);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: .85rem;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.hidden { display: none !important; }
