:root {
  --primary: #00b2a9;
  --primary-dark: #008c85;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --bg-light: #f9fafb;
  --border-color: #e5e7eb;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.subpage-header {
  padding: 40px 0;
  background: white;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 24px;
}

.subpage-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 40px;
  background: white;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
}

.direction-title {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 32px;
  text-align: center;
  color: var(--text-dark);
}

.expert-text p {
  margin-bottom: 24px;
  font-size: 18px;
  color: #374151;
}

/* Image Styling */
.direction-image-container {
  margin: 40px -40px; /* Bleed out slightly or stay inside */
  text-align: center;
}

.direction-image {
  max-width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 178, 169, 0.1);
  transition: transform 0.5s ease;
}

.direction-image:hover {
  transform: scale(1.02);
}

/* CTA Block - Subpage Version */
.subpage-cta {
  margin: 80px auto;
  max-width: 1120px;
}

.cta-card {
  background: linear-gradient(135deg, #00b2a9 0%, #008c85 100%);
  border-radius: 40px;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-content {
  max-width: 500px;
}

.cta-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.btn-white {
  background: white;
  color: var(--primary-dark);
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-white:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-qr-side {
  background: white;
  padding: 30px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-dark);
  text-align: center;
}

.qr-logo {
  height: 40px;
  margin-bottom: 10px;
}

.qr-slogan {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.qr-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}

.qr-code-img {
  width: 120px;
  height: 120px;
}

/* Logo Utility for CTA */
.logo-self { color: #00b2a9; font-weight: 900; }
.logo-stepper { color: #111827; font-weight: 900; }

.subpage-footer {
  padding: 60px 0;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  background: white;
}

@media (max-width: 900px) {
  .subpage-container {
    margin: 40px 20px;
    padding: 32px 24px;
    border-radius: 24px;
  }
  .direction-title {
    font-size: 36px;
  }
  .direction-image-container {
    margin: 32px -24px;
  }
  .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 32px;
    border-radius: 32px;
    margin: 0 20px;
  }
  .cta-content { 
    margin-bottom: 40px; 
    max-width: 100%;
  }
  .cta-content h2 {
    font-size: 32px;
  }
  .qr-code-img { width: 140px; height: 140px; }
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 600px) {
  .direction-title {
    font-size: 32px;
  }
  .expert-text p {
    font-size: 16px;
  }
  .subpage-container {
    margin: 20px 16px;
    padding: 24px 20px;
  }
  .direction-image-container {
    margin: 24px -20px;
  }
}

/* Внутренняя перелинковка (Related Directions) */
.related-directions {
    padding: 60px 0 80px;
    background: #fdfdfd;
}
.related-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 30px;
    font-family: var(--font-heading);
}
.related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.related-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.related-card:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 178, 169, 0.2);
}
.related-icon {
    font-size: 18px;
}
@media (max-width: 768px) {
    .related-card {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
        padding: 16px;
    }
    .related-title {
        font-size: 22px;
    }
}
