/* SLG — slg-tech.ru */
:root {
  --bg: #0b1220;
  --bg-elevated: #111b2e;
  --bg-card: #162033;
  --border: #243049;
  --text: #e8edf5;
  --muted: #8b9cb3;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --blue: #38bdf8;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.logo span { color: var(--text); font-weight: 600; }

.header-contacts {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.header-contacts a:hover { color: var(--blue); }

.nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav a {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--bg-card);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #1a1200;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(56, 189, 248, 0.15), transparent),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(245, 158, 11, 0.08), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 52ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-row a {
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-row a.phone { color: var(--blue); font-size: 1.35rem; }

.contact-row small { color: var(--muted); font-size: 0.85rem; }

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.section-lead {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 70ch;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.05rem;
  line-height: 1.3;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card-price {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.card-link {
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 500;
}

/* Category cards on homepage */
.category-cards .card {
  min-height: 140px;
}

.category-cards .card-icon {
  font-size: 2rem;
  line-height: 1;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-elevated);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: rgba(56, 189, 248, 0.04); }

/* Prose */
.prose h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.prose p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.prose ul {
  color: var(--muted);
  margin: 0 0 1rem 1.25rem;
}

.prose li { margin-bottom: 0.35rem; }

/* CTA */
.cta {
  margin: 2.5rem 0;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  text-align: center;
}

.cta h2 { margin-bottom: 0.5rem; }

.cta p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-grid strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-top: 1rem;
}

.breadcrumb a:hover { color: var(--blue); }

/* Model page */
.model-hero {
  padding: 2rem 0 1rem;
}

.model-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .model-hero-grid { grid-template-columns: 1fr; }
}

.model-price-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-width: 240px;
  text-align: center;
}

.model-price-box .price-shift {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.model-price-box .price-hour {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.model-price-box .btn {
  width: 100%;
  margin-top: 1rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.spec-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}

.spec-item dt {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.spec-item dd {
  font-weight: 600;
  font-size: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--blue);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.back-link:hover { text-decoration: underline; }

/* Lead form */
.lead-form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.lead-form-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.lead-form-section > p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 640px) {
  .lead-form { grid-template-columns: 1fr; }
}

.lead-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lead-form .field--full {
  grid-column: 1 / -1;
}

.lead-form label {
  font-size: 0.85rem;
  color: var(--muted);
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

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

.lead-form .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.lead-form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.lead-form-status {
  font-size: 0.9rem;
  color: var(--muted);
}

.lead-form-status--ok { color: #4ade80; }
.lead-form-status--err { color: #f87171; }

.lead-form-note {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--muted);
}
