/**
 * Единый dark-tech UI: типографика, секции, карточки, кнопки
 */

/* —— Масштаб интерфейса ~1.2x —— */
html {
  font-size: 112.5%;
}

@media (min-width: 1200px) {
  html {
    font-size: 118.75%;
  }
}

:root {
  --radius: 28px;
  --glow-soft: 0 0 20px rgba(255, 122, 26, 0.08);
  --glow-mid: 0 0 28px rgba(255, 122, 26, 0.12);
  --glow-hover: 0 0 32px rgba(255, 122, 26, 0.16);
}

.container {
  width: min(1240px, calc(100% - 52px));
}

.btn {
  padding: 14px 22px;
  font-size: 0.95rem;
}

.lead,
.hero-lead {
  font-size: 1.125rem;
}

/* —— Breadcrumb —— */
.site-breadcrumb {
  padding: 12px 0 0;
  border-bottom: 1px solid transparent;
}

.site-breadcrumb-inner {
  padding-bottom: 10px;
}

.site-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.site-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-breadcrumb-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.site-breadcrumb-link:hover {
  color: var(--orange);
  text-shadow: 0 0 14px rgba(255, 122, 26, 0.35);
}

.site-breadcrumb-sep {
  color: rgba(255, 122, 26, 0.35);
  font-weight: 300;
  user-select: none;
}

.site-breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

.page-split-hero,
.page-hero {
  padding-top: 28px;
}

@media (max-width: 768px) {
  .site-breadcrumb-list {
    font-size: 0.75rem;
  }

  .container {
    width: min(1240px, calc(100% - 32px));
  }
}

/* —— Заголовки (первое слово белое, остальное оранжевое) —— */
.title-first,
.text-white {
  color: var(--text);
}

.title-rest,
.text-accent,
.orange-text {
  color: var(--orange);
}

.page-hero h1,
.page-hero-grid h1,
.page-hero-content h1,
.hero-content h1,
.hero-carousel-section .hero-content h1,
.contacts-intro h1,
.assistant-hero h1 {
  font-size: clamp(2.15rem, 4.8vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.assistant-content h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 12px;
}

.section-heading h2,
.section-header h2,
.page-hero-content h2,
.section h2,
.skb-about-grid h2,
h2.section-title {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.section-heading,
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading .section-subtitle,
.section-header .section-description {
  color: var(--muted);
  max-width: 640px;
  margin: 8px auto 0;
  line-height: 1.6;
  font-size: 1rem;
}

/* —— Секции —— */
.section {
  padding: 76px 0;
}

.page-hero,
.page-split-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
}

.page-hero-content {
  max-width: 820px;
}

/* —— Стеклянные карточки (унификация) —— */
.glass-panel,
.direction-card,
.competency-card,
.roadmap-step-card,
.role-card,
.module-card,
.student-card,
.card,
.partner-card,
.project-info-card,
.filter-row,
.contacts-form-card,
.assistant-sidebar,
.assistant-chat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.direction-card:hover,
.competency-card:hover,
.glass-panel:hover,
.activity-tile:hover,
.direction-pill:hover,
.partner-card:hover,
.filter-row:focus-within {
  border-color: rgba(255, 122, 26, 0.35);
  box-shadow: var(--glow-mid);
}

/* Глобальные тонкие glow-акценты */
.direction-card,
.partner-card,
.competency-card,
.community-pillar {
  box-shadow: var(--glow-soft);
}

.btn-primary:hover,
.btn-accent:hover,
.btn-outline:hover {
  box-shadow: var(--glow-hover);
}

/* —— CTA —— */
.page-cta-inner,
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.page-cta-inner::before,
.cta-band::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--orange), transparent);
  border-radius: var(--radius) 0 0 var(--radius);
}

.page-cta-inner,
.cta-band {
  position: relative;
}

/* —— Кнопки: единый акцентный вид —— */
.btn-primary,
.btn-accent,
.assistant-send-btn.btn-primary {
  background: transparent;
  border: 1px solid rgba(255, 122, 26, 0.5);
  color: var(--text);
  box-shadow: 0 0 18px rgba(255, 122, 26, 0.08);
}

.btn-primary:hover,
.btn-accent:hover,
.assistant-send-btn.btn-primary:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 122, 26, 0.14);
  filter: none;
}

/* —— Eyebrow / section-tag —— */
.eyebrow,
.eyebrow-line,
.section-tag,
.assistant-hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  padding: 0 0 6px;
  margin-bottom: 14px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: 0;
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .page-hero,
  .page-split-hero {
    padding: 64px 0 44px;
  }
}

/* Reveal animation (студенческие страницы) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
