/*
Theme Name: IT-Fork Modern
Theme URI: https://it-fork.ru
Author: IT-Fork Team
Description: Современная Full Site Editing (FSE) тема: Строительство ВОЛС, монтаж СКС и комплексный IT-аутсорсинг.
Version: 3.1.0
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: it-fork
*/

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --slate: #64748b;
  --light-bg: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--dark-surface);
  background-color: var(--light-bg);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Навигация и хедер */
.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.site-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
}
.site-logo span {
  color: var(--primary);
}

/* Карточки */
.it-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.it-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

/* Бейджи и метрики */
.badge-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Форма лидогенерации */
.lead-form-wrap {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-surface) 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 48px;
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) auto;
  gap: 16px;
  margin-top: 24px;
}

.lead-input {
  width: 100%;
  padding: 14px 16px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #ffffff;
  font-size: 15px;
}
.lead-input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover {
  background: var(--primary-hover);
}

/* Аккордеон FAQ */
.faq-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-trigger {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-content {
  padding: 0 24px 18px;
  color: var(--slate);
  display: none;
}
.faq-box.open .faq-content {
  display: block;
}

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