/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1B3A5C;
  --primary-light: #2a5485;
  --accent: #E8A020;
  --accent-hover: #cf8f1a;
  --bg: #F7F5F2;
  --white: #ffffff;
  --text: #2C2C2C;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(27,58,92,0.10);
  --shadow-lg: 0 8px 40px rgba(27,58,92,0.15);
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

.section-title {
  text-align: center;
  margin-bottom: 12px;
  color: var(--primary);
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,160,32,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover {
  background: var(--bg);
  transform: translateY(-1px);
}
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== HEADER ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
}
.logo span { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav a:hover, .nav a.active {
  background: #EEF3F9;
  color: var(--primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.header-phone {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2a5485 60%, #1a4a70 100%);
  color: var(--white);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(circle, rgba(232,160,32,0.12) 0%, transparent 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,160,32,0.2);
  border: 1px solid rgba(232,160,32,0.4);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero-desc {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}
.hero-stat span {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Quick form in hero */
.hero-form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.hero-form-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.3rem;
}
.hero-form-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
  font-family: inherit;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,58,92,0.08);
}
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== CATEGORIES ===== */
.categories { padding: 80px 0; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.25s;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.cat-card:hover, .cat-card.active {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.cat-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #EEF3F9, #dde8f5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}
.cat-card h3 { color: var(--primary); margin-bottom: 8px; }
.cat-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.cat-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: var(--white);
  padding: 80px 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--primary));
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(27,58,92,0.3);
}
.step h4 { color: var(--primary); margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== BENEFITS ===== */
.benefits { padding: 80px 0; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.benefit-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--accent), #f4b84a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.benefit-card h4 { color: var(--primary); margin-bottom: 6px; }
.benefit-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), #2a5485);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { opacity: 0.9; font-size: 1.1rem; margin-bottom: 36px; }

/* ===== REVIEWS ===== */
.reviews { padding: 80px 0; background: var(--white); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
}
.review-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 12px; }
.review-text { color: var(--text); margin-bottom: 16px; font-size: 0.95rem; line-height: 1.6; }
.review-author strong { display: block; color: var(--primary); }
.review-author span { font-size: 0.85rem; color: var(--text-muted); }

/* ===== CATEGORY HERO ===== */
.cat-hero {
  background: linear-gradient(135deg, var(--primary), #2a5485);
  color: var(--white);
  padding: 64px 0;
}
.cat-hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}
.cat-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,160,32,0.2);
  border: 1px solid rgba(232,160,32,0.5);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.cat-hero h1 { margin-bottom: 16px; }
.cat-hero h1 span { color: var(--accent); }
.cat-hero-desc { font-size: 1.1rem; opacity: 0.9; margin-bottom: 24px; }
.cat-hero-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.cat-hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  opacity: 0.9;
}
.cat-hero-features li::before {
  content: '✓';
  background: var(--accent);
  color: var(--white);
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Form card (reusable) */
.form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.form-card-title {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.form-card-sub {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
}
.form-privacy {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* ===== CONTENT SECTION ===== */
.content-section { padding: 72px 0; }
.content-section.bg-white { background: var(--white); }

/* ===== INFO GRID ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}
.info-card h4 { color: var(--primary); margin-bottom: 10px; }
.info-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== FAQ ===== */
.faq { padding: 72px 0; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}
.faq-q span { font-size: 1.2rem; transition: transform 0.3s; }
.faq-q.open span { transform: rotate(45deg); }
.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-a.open {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ===== TRUST BADGES ===== */
.trust-bar {
  background: var(--primary);
  color: var(--white);
  padding: 20px 0;
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0.9;
}
.trust-item strong { color: var(--accent); }

/* ===== APPLY PAGE ===== */
.apply-hero {
  background: linear-gradient(135deg, var(--primary), #2a5485);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.apply-hero h1 { margin-bottom: 12px; }
.apply-hero p { opacity: 0.9; font-size: 1.1rem; }
.apply-main { padding: 64px 0; }
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.apply-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.apply-sidebar { position: sticky; top: 96px; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.sidebar-card h4 { color: var(--primary); margin-bottom: 16px; }
.sidebar-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-stat:last-child { border-bottom: none; }
.sidebar-stat strong { font-size: 1.4rem; color: var(--accent); }
.sidebar-stat span { font-size: 0.875rem; color: var(--text-muted); }

/* ===== FOR BUSINESS ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  border: 2px solid transparent;
}
.pricing-card.featured {
  border-color: var(--accent);
  transform: scale(1.04);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-card h3 { color: var(--primary); margin-bottom: 8px; }
.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 16px 0 4px;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-period { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 24px; }
.pricing-features {
  text-align: left;
  margin-bottom: 28px;
}
.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.pricing-features li::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* ===== THANKS PAGE ===== */
.thanks-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}
.thanks-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  max-width: 540px;
  box-shadow: var(--shadow-lg);
}
.thanks-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 28px;
}
.thanks-card h2 { color: var(--primary); margin-bottom: 12px; }
.thanks-card p { color: var(--text-muted); margin-bottom: 8px; }
.thanks-steps { margin: 28px 0; text-align: left; }
.thanks-step {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.thanks-step:last-child { border-bottom: none; }
.thanks-step-n {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}
.thanks-step-text strong { display: block; color: var(--primary); margin-bottom: 2px; }
.thanks-step-text span { color: var(--text-muted); font-size: 0.875rem; }

/* ===== FOOTER ===== */
.footer {
  background: #111827;
  color: #9ca3af;
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
}
.footer-logo span { color: var(--accent); }
.footer-about { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-contacts { font-size: 0.9rem; }
.footer-contacts strong { color: var(--white); font-size: 1rem; }
.footer-contacts p { margin-bottom: 4px; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #9ca3af;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: #9ca3af; }
.footer-bottom-links a:hover { color: var(--white); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ===== STEP PROGRESS ===== */
.form-steps {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
}
.form-step-item {
  flex: 1;
  text-align: center;
  position: relative;
}
.form-step-item::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.form-step-item:last-child::after { display: none; }
.form-step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}
.form-step-item.done .form-step-dot {
  background: var(--primary);
  color: var(--white);
}
.form-step-item.active .form-step-dot {
  background: var(--accent);
  color: var(--white);
}
.form-step-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.form-step-item.active .form-step-label,
.form-step-item.done .form-step-label {
  color: var(--primary);
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
}
.mobile-nav a:hover { background: #EEF3F9; color: var(--primary); }

/* ===== BLOG ===== */
.blog-hero {
  background: linear-gradient(135deg, var(--primary), #2a5485);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.blog-hero h1 { margin-bottom: 12px; }
.blog-hero p { opacity: 0.9; font-size: 1.05rem; }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  padding: 56px 0;
}

.blog-list { display: flex; flex-direction: column; gap: 32px; }

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 220px 1fr;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.blog-card-img {
  background: linear-gradient(135deg, #EEF3F9, #dde8f5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  min-height: 180px;
}
.blog-card-body { padding: 24px; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.blog-tag {
  background: #EEF3F9;
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.blog-date { font-size: 0.8rem; color: var(--text-muted); }
.blog-card-body h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.1rem; }
.blog-card-body h3 a { color: inherit; }
.blog-card-body h3 a:hover { color: var(--accent); }
.blog-card-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }
.blog-read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Blog sidebar */
.blog-sidebar { position: sticky; top: 96px; }
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.sidebar-widget h4 { color: var(--primary); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.popular-list { display: flex; flex-direction: column; gap: 14px; }
.popular-item { display: flex; gap: 12px; align-items: flex-start; }
.popular-num {
  width: 28px; height: 28px; min-width: 28px;
  background: var(--primary); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.popular-item a { color: var(--text); font-size: 0.875rem; line-height: 1.4; }
.popular-item a:hover { color: var(--accent); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  background: #EEF3F9; color: var(--primary);
  padding: 5px 12px; border-radius: 20px; font-size: 0.82rem; font-weight: 500;
  transition: all 0.15s;
}
.tag-cloud a:hover { background: var(--primary); color: var(--white); }

/* Article page */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding: 48px 0 72px;
}
.article-header { margin-bottom: 32px; }
.article-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  align-items: center; margin-bottom: 16px;
}
.article-body {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  line-height: 1.8;
}
.article-body h2 {
  color: var(--primary); font-size: 1.5rem;
  margin: 36px 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--bg);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { color: var(--primary); font-size: 1.15rem; margin: 24px 0 10px; }
.article-body p { margin-bottom: 16px; color: var(--text); }
.article-body ul, .article-body ol {
  padding-left: 24px; margin-bottom: 16px; color: var(--text);
}
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body strong { color: var(--primary); }
.article-body a { color: var(--accent); text-decoration: underline; }

.article-table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.article-table th {
  background: var(--primary); color: var(--white);
  padding: 12px 16px; text-align: left; font-size: 0.9rem;
}
.article-table td {
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.article-table tr:last-child td { border-bottom: none; }
.article-table tr:nth-child(even) td { background: #fafafa; }

.article-tip {
  background: #f0f7ff;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin: 20px 0;
}
.article-tip strong { color: var(--primary); display: block; margin-bottom: 4px; }
.article-tip p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

.article-warn {
  background: #fffbf0;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin: 20px 0;
}
.article-warn strong { color: var(--accent); display: block; margin-bottom: 4px; }
.article-warn p { margin: 0; font-size: 0.9rem; color: var(--text); }

.article-cta {
  background: linear-gradient(135deg, var(--primary), #2a5485);
  color: var(--white); border-radius: var(--radius);
  padding: 28px; margin: 32px 0; text-align: center;
}
.article-cta h4 { margin-bottom: 8px; font-size: 1.1rem; }
.article-cta p { opacity: 0.9; font-size: 0.9rem; margin-bottom: 16px; }

.article-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 32px;
}
.article-nav-btn {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 16px 20px; box-shadow: var(--shadow); display: block;
  font-size: 0.875rem; color: var(--text-muted);
}
.article-nav-btn strong { display: block; color: var(--primary); margin-top: 4px; }
.article-nav-btn:hover { box-shadow: var(--shadow-lg); }

/* Article sidebar sticky */
.article-sidebar { position: sticky; top: 96px; }
.toc-widget { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.toc-widget h4 { color: var(--primary); margin-bottom: 14px; font-size: 0.95rem; }
.toc-list { display: flex; flex-direction: column; gap: 8px; }
.toc-list a {
  color: var(--text-muted); font-size: 0.875rem; padding: 4px 0;
  border-left: 2px solid var(--border); padding-left: 12px;
  display: block; transition: all 0.15s;
}
.toc-list a:hover { color: var(--primary); border-left-color: var(--accent); }

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; padding: 32px 0; }
  .blog-sidebar { display: none; }
  .blog-card { grid-template-columns: 1fr; }
  .blog-card-img { min-height: 120px; }
  .article-layout { grid-template-columns: 1fr; padding: 24px 0 48px; }
  .article-sidebar { display: none; }
  .article-body { padding: 24px; }
  .article-nav { grid-template-columns: 1fr; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
  .nav a { padding: 6px 9px; font-size: 0.86rem; }
  .header-inner { gap: 16px; }
  .header-phone { display: none; }
}

@media (max-width: 1200px) {
  .nav a { padding: 5px 7px; font-size: 0.82rem; }
  .header-inner { gap: 10px; }
  .header-cta { gap: 6px; }
}

@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-card.featured { transform: scale(1); }
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .header-phone { display: none; }
  .header-cta .btn { display: none; }
  .burger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-form-card { display: none; }
  .hero { padding: 52px 0; }
  .hero-stats { gap: 20px; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }

  .benefits-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }

  .cat-hero-inner { grid-template-columns: 1fr; }
  .cat-hero .form-card { display: none; }

  .apply-grid { grid-template-columns: 1fr; }
  .apply-sidebar { display: none; }
  .apply-form-card { padding: 24px; }

  .form-row { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .trust-items { gap: 20px; }

  .thanks-card { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
