/* ============================================
   avtoshkola.courses — Main Stylesheet
   Magazine / Editorial design for driving school affiliate site
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-bg: #f8fafc;
  --color-white: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-accent: #059669;
  --color-accent-dark: #047857;
  --color-accent-light: #d1fae5;
  --color-accent-hover: #10b981;
  --color-cta: #f59e0b;
  --color-cta-dark: #d97706;
  --color-cta-hover: #fbbf24;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-card-shadow: rgba(0, 0, 0, 0.08);
  --color-hero-start: #1e293b;
  --color-hero-end: #065f46;
  --color-footer-bg: #1e293b;
  --color-footer-text: #cbd5e1;
  --color-footer-accent: #34d399;
  --color-evidence-bg: #fffbeb;
  --color-evidence-border: #fbbf24;
  --color-notice-bg: #f0fdf4;
  --color-notice-border: #86efac;
  --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 2px 8px var(--color-card-shadow);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.3rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

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

th {
  background-color: var(--color-bg);
  font-weight: 600;
  color: var(--color-text);
}

tbody tr:hover {
  background-color: var(--color-border-light);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
}

h4 {
  font-size: 1.05rem;
  margin: 1rem 0 0.5rem;
}

p {
  margin-bottom: 1rem;
}

strong, b {
  font-weight: 600;
}

blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: var(--color-notice-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.text-small { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Navigation --- */
.site-nav {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  gap: 0.75rem;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--color-hero-start), var(--color-hero-end));
  color: white;
  padding: 3rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero .hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-city {
  font-size: 1rem;
  color: var(--color-footer-accent);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

.breadcrumbs span {
  margin: 0 0.4rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn-cta {
  background: var(--color-cta);
  color: var(--color-text);
}

.btn-cta:hover {
  background: var(--color-cta-hover);
  color: var(--color-text);
}

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

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

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

.btn-outline:hover {
  background: var(--color-accent);
  color: white;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 1rem;
}

.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.trust-icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* --- Section --- */
.section {
  padding: 3rem 0;
}

.section-gray {
  background: var(--color-bg);
}

.section-white {
  background: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Steps / How It Works --- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  counter-increment: step;
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* --- Article / Content --- */
.article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content p {
  font-size: 1rem;
  line-height: 1.8;
}

.article-content h2 {
  margin-top: 2.5rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* --- Sidebar Layout --- */
.page-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.page-layout .main-content {
  flex: 1;
  min-width: 0;
}

.page-layout .sidebar {
  flex-shrink: 0;
}

.sidebar-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.sidebar-card .banner-img {
  margin: 0 -0.25rem;
}

.sidebar-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* --- TOC --- */
.toc {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  border-left: 4px solid var(--color-accent);
}

.toc h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.toc a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  display: block;
  padding: 0.2rem 0;
  transition: color var(--transition);
}

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

.toc .toc-h3 {
  padding-left: 1.25rem;
  font-size: 0.85rem;
}

/* --- FAQ --- */
.faq-list {
  margin: 2rem 0;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  color: var(--color-text);
  user-select: none;
  transition: background var(--transition);
}

.faq-item summary:hover {
  background: var(--color-border-light);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-border-light);
}

.faq-item[open] summary + div,
.faq-item details[open] summary + p {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  animation: fadeIn 0.2s ease;
}

.faq-item details[open] summary {
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-border-light);
}

/* for details/summary pattern */
details.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  color: var(--color-text);
  user-select: none;
  transition: background var(--transition);
}

details.faq-item summary:hover {
  background: var(--color-border-light);
}

details.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform var(--transition);
}

details.faq-item[open] summary::after {
  content: '−';
}

details.faq-item .faq-answer {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Evidence Note --- */
.evidence-note {
  background: var(--color-evidence-bg);
  border: 1px solid var(--color-evidence-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.evidence-note strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-cta-dark);
}

/* --- Notice Box --- */
.notice-box {
  background: var(--color-notice-bg);
  border: 1px solid var(--color-notice-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.notice-box strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-accent-dark);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-hero-start), var(--color-hero-end));
  color: white;
  text-align: center;
  padding: 3rem 1rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-cta {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* --- Banner Image --- */
.banner-placement {
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.banner-placement img {
  display: inline-block;
  border-radius: var(--radius-sm);
}

/* --- Comparison Table --- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.comparison-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-accent);
}

.comparison-card.secondary {
  border-top-color: var(--color-cta);
}

.comparison-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.comparison-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-card li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.comparison-card li:last-child {
  border-bottom: none;
}

.comparison-card li .check {
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.comparison-card li .cross {
  color: #ef4444;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Calculator --- */
.calculator {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.calculator h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.calc-group {
  margin-bottom: 1.25rem;
}

.calc-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.calc-group select,
.calc-group input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-family);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition);
}

.calc-group select:focus,
.calc-group input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.calc-result {
  background: var(--color-notice-bg);
  border: 1px solid var(--color-notice-border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.calc-result .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.calc-result .price-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.calc-breakdown {
  text-align: left;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-notice-border);
  font-size: 0.9rem;
}

.calc-breakdown .row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  color: var(--color-text-muted);
}

.calc-breakdown .row.total {
  font-weight: 700;
  color: var(--color-text);
  border-top: 1px solid var(--color-notice-border);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

/* --- Hub Links / Spoke Pages --- */
.hub-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.hub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition);
  border-left: 3px solid var(--color-accent);
}

.hub-link:hover {
  text-decoration: none;
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-left-color: var(--color-accent-hover);
  color: var(--color-text);
}

.hub-link .hub-link-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.hub-link .hub-link-arrow {
  color: var(--color-accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* --- Related Pages --- */
.related-pages {
  margin: 2rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.related-pages h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--color-footer-text);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-footer-accent);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.footer-bottom a {
  color: var(--color-footer-text);
}

.footer-bottom a:hover {
  color: var(--color-footer-accent);
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* --- Last Reviewed / Updated Date --- */
.last-reviewed {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* --- Category Badge --- */
.category-badge {
  display: inline-block;
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

/* --- Pricing Cards --- */
.pricing-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border: 2px solid var(--color-accent);
}

.pricing-card.featured::before {
  content: 'Популярный';
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 0 var(--radius-sm) 0 var(--radius-sm);
}

.pricing-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.pricing-card .price-tag {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  margin: 1rem 0;
}

.pricing-card .price-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 1.5rem 0;
}

.pricing-card li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.pricing-card li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 700;
}

/* --- Service Page Layout --- */
.service-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.service-page h1 {
  margin-bottom: 1.5rem;
}

/* --- Responsive: 600px --- */
@media (min-width: 600px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-bar-inner {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .hero h1 {
    font-size: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hub-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Responsive: 900px --- */
@media (min-width: 900px) {
  .nav-links {
    display: flex !important;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links.open {
    position: static;
    flex-direction: row;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .hero {
    padding: 4rem 2rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .page-layout .main-content {
    flex: 1;
  }

  .page-layout .sidebar {
    width: 280px;
    flex-shrink: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hub-links {
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    font-size: 2.25rem;
  }
}

/* --- Print Styles --- */
@media print {
  .site-nav,
  .site-footer,
  .cta-banner,
  .banner-placement,
  .sidebar,
  .toc,
  .nav-toggle,
  .btn,
  details.faq-item summary::after {
    display: none !important;
  }

  body {
    background: white;
    color: #000;
    font-size: 12pt;
    line-height: 1.5;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href^="https://dd3seo"] {
    display: none;
  }

  .hero {
    background: #f0f0f0 !important;
    color: #000;
    padding: 2rem 0;
  }

  .hero h1 {
    color: #000;
  }

  .card, .faq-item, details.faq-item, .sidebar-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .faq-item[open] summary,
  details.faq-item[open] summary {
    background: #f5f5f5;
  }

  .page-layout {
    flex-direction: column;
  }

  .section {
    padding: 1rem 0;
  }

  .breadcrumbs {
    font-size: 10pt;
  }

  table {
    font-size: 10pt;
  }
}

.answer-card{max-width:1120px;margin:1.5rem auto;padding:1.4rem 1.6rem;border:1px solid #cbdcf8;border-radius:18px;background:linear-gradient(135deg,#f7faff,#eef5ff);box-shadow:0 12px 34px rgba(26,73,140,.08)}.answer-card h2{margin:.25rem 0 .7rem}.answer-card ul{display:grid;gap:.45rem;padding-left:1.2rem}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.78rem;font-weight:800;color:#245fb6}.floating-cta{position:fixed;right:22px;bottom:22px;z-index:1000;display:flex;gap:.6rem;align-items:center;padding:.95rem 1.25rem;border-radius:999px;background:#f15a24;color:#fff!important;font-weight:800;text-decoration:none;box-shadow:0 12px 30px rgba(126,42,11,.34)}.floating-cta:hover{transform:translateY(-2px);background:#d94812}@media(max-width:700px){body{padding-bottom:76px}.answer-card{margin:1rem;padding:1.1rem}.floating-cta{left:12px;right:12px;bottom:10px;justify-content:center;border-radius:14px}}
