/* ТЕЛЛУР-ПРОМ — Консультування з питань інформатизації */
:root {
  --color-bg: #0f1419;
  --color-surface: #1a2332;
  --color-surface-hover: #243044;
  --color-accent: #3b82c6;
  --color-accent-light: #60a5fa;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-border: #334155;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Georgia', 'Times New Roman', serif;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-light);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-list a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-accent-light);
  background: var(--color-surface-hover);
}

/* Main content */
.main {
  flex: 1;
  padding: 2rem 1.5rem 3rem;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.main .wrap {
  padding: 0 0.5rem;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--color-text);
  font-weight: 600;
}

h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--color-accent-light);
  font-weight: 600;
}

h3 {
  font-size: 1.15rem;
  margin: 1rem 0 0.5rem;
  color: var(--color-text);
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  max-width: 65ch;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

/* Hero block */
.hero {
  text-align: center;
  padding: 3rem 1rem 4rem;
  background: linear-gradient(180deg, var(--color-surface) 0%, transparent 100%);
  border-radius: var(--radius);
  margin-bottom: 3rem;
}

.hero h1 {
  margin-bottom: 0.75rem;
}

.hero .lead {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* Cards / sections */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

/* Lists */
ul.content-list {
  list-style: none;
  margin: 1rem 0;
}

ul.content-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

ul.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Contact form */
.form-group {
  margin-bottom: 1.25rem;
  max-width: 400px;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-text);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--color-accent-light);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
}

.site-footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent-light);
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.footer-contacts a {
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.footer-contacts a:hover {
  color: var(--color-accent-light);
}

.footer-contacts .sep {
  color: var(--color-border);
  font-weight: 300;
}

@media (max-width: 600px) {
  .site-footer .wrap {
    flex-direction: column;
    text-align: center;
  }

  .footer-contacts {
    justify-content: center;
  }
}
