/* Главная страница — ТЕРАКОР */

:root {
  --tk-navy: #1a1a2e;
  --tk-navy-2: #16213e;
  --tk-navy-deep: #07182f;
  --tk-navy-mid: #102a4d;
  --tk-orange: #f39c12;
  --tk-orange-dark: #e67e22;
  --tk-gold: #ffd166;
  --tk-gold-light: #fff8e7;
  --tk-red: #e74c3c;
  --tk-blue: #3498db;
  --tk-blue-dark: #1a5276;
  --tk-success: #27ae60;
  --tk-text: #2c3e50;
  --tk-muted: #5d6d7e;
  --tk-surface: #f8fafc;
  --tk-surface-warm: #fffaf2;
  --tk-border: #e2e8f0;
  --tk-radius: 16px;
  --tk-shadow: 0 12px 40px rgba(26, 26, 46, 0.1);
  --tk-shadow-hover: 0 20px 48px rgba(26, 26, 46, 0.16);
  --tk-gradient-brand: linear-gradient(135deg, var(--tk-orange), var(--tk-orange-dark));
  --tk-gradient-navy: linear-gradient(135deg, var(--tk-navy-deep), var(--tk-navy-mid), var(--tk-navy));
}

body {
  color: var(--tk-text);
  line-height: 1.65;
}

.section-padding {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* Заголовки секций */
.section-heading {
  font-family: var(--body-font-family, "Manrope", system-ui, sans-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  font-weight: 800;
  color: var(--tk-navy) !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 0.75rem;
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  line-height: 1.22;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: none;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tk-orange), var(--tk-gold));
}

.section-lead {
  color: var(--tk-muted) !important;
  font-size: 1.1rem;
  max-width: 720px;
  margin: 1rem auto 0;
}

/* Hero */
.main-banner {
  min-height: min(88vh, 720px);
  height: auto !important;
  max-height: none !important;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.main-banner #bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 100%;
  max-width: 100%;
  max-height: none;
  object-fit: cover;
  z-index: 0;
}

.main-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.88) 0%,
    rgba(22, 33, 62, 0.78) 50%,
    rgba(26, 26, 46, 0.82) 100%
  );
  pointer-events: none;
}

.main-banner .video-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: min(88vh, 720px);
  height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1rem 2.5rem;
  background-color: rgba(22, 34, 57, 0.55);
}

.main-banner .caption {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 900px;
  padding: 0;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff !important;
  background: rgba(243, 156, 18, 0.25);
  border: 1px solid rgba(243, 156, 18, 0.5);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  max-width: min(100%, 22rem);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.hero-eyebrows {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.hero-eyebrows .hero-badge,
.hero-eyebrows .hero-programming-label {
  margin-bottom: 0;
}

.hero-badge i {
  color: #ffd166;
}

.hero-badge--geo {
  max-width: min(100%, 30rem);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: clamp(0.78rem, 1.7vw, 0.88rem);
  line-height: 1.4;
}

.hero-badge--geo em {
  font-style: normal;
  color: var(--tk-gold);
  font-weight: 800;
}

.hero-programming-label span {
  color: var(--tk-gold);
  font-weight: 800;
}

.hero-programming-label,
.main-banner .hero-programming-label,
.main-banner p.hero-programming-label {
  display: inline-block;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: rgba(26, 26, 46, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.4rem 1.25rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin: 0.35rem 0 1.15rem;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.main-banner .caption h1,
.main-banner .caption h2 {
  font-size: clamp(2rem, 6vw, 3.25rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: #fff !important;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem !important;
}

.main-banner .hero-main-title {
  font-size: clamp(1.45rem, 5.8vw, 3.25rem) !important;
  line-height: 1.22 !important;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: none;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  margin-top: 0.35rem;
}

.main-banner .caption h1 em,
.main-banner .caption h2 em {
  font-style: normal;
  color: #fff8e7;
  -webkit-text-fill-color: #fff8e7;
}

.main-banner .hero-subtitle,
.main-banner .hero-stat {
  font-weight: 600;
  color: #ffffff !important;
  letter-spacing: 0.02em;
  line-height: 1.55;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 0 28px rgba(0, 0, 0, 0.45);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.main-banner .hero-subtitle {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  margin-bottom: 0;
}

.main-banner .hero-stat {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  margin-top: 2rem;
  margin-bottom: 0;
}

.hero-stat i {
  color: var(--tk-orange);
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.hero-pillar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-pillar:hover {
  transform: translateY(-2px);
  background: rgba(243, 156, 18, 0.28);
}

.hero-pillar i {
  color: var(--tk-orange);
}

.btn-hero-interview {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
}

/* Карточки контента */
.content-card {
  background: #fff;
  border-radius: var(--tk-radius);
  padding: 2rem;
  border: 1px solid #e9ecef;
  box-shadow: var(--tk-shadow);
  height: 100%;
  font-family: var(--body-font-family, "Manrope", system-ui, sans-serif);
}

.content-card p {
  color: var(--tk-text) !important;
  font-family: var(--body-font-family, "Manrope", system-ui, sans-serif);
  font-size: var(--p-font-size, 1.125rem);
  line-height: 1.7;
  text-align: left;
}

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--tk-navy) !important;
  font-family: var(--body-font-family, "Manrope", system-ui, sans-serif);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.article-content h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.85rem;
  color: var(--tk-navy-2) !important;
  font-family: var(--body-font-family, "Manrope", system-ui, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.4rem;
  padding-left: 1.75rem;
  color: var(--tk-text);
  line-height: 1.75;
  list-style-position: outside;
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content ul ul {
  list-style-type: circle;
  margin: 0.35rem 0 0.5rem;
}

.article-content ul ul ul {
  list-style-type: square;
}

.article-content li {
  display: list-item;
  margin-bottom: 0.45rem;
}

.article-content code {
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: #f3f6fb;
  color: #d35400;
  font-size: 0.92em;
}

.article-code {
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  border: 1px solid #dbe7f5;
  border-radius: 1rem;
  background: linear-gradient(180deg, #0f172a, #111827);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.article-code code {
  padding: 0;
  background: transparent;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre;
}

.article-toc--sticky {
  position: sticky;
  top: 5.5rem;
  z-index: 4;
}

@media (max-width: 991.98px) {
  .article-toc--sticky {
    position: static;
  }
}

.article-nav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.25rem 0 0;
}

.article-nav-chips a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid #dbe7f5;
  border-radius: 999px;
  background: #fff;
  color: #0f172a !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05);
}

.article-nav-chips a:hover {
  border-color: #93c5fd;
  color: #1d4ed8 !important;
}

.article-figure {
  margin: 2.2rem 0;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 35, 63, 0.06);
}

.article-figure--small {
  max-width: 520px;
  margin: 1.6rem auto;
}

.article-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 2.2rem 0;
}

.article-figure-grid .article-figure {
  margin: 0;
  height: 100%;
}

.article-figure img {
  display: block;
  width: 100%;
  border-radius: 0.85rem;
  box-shadow: none;
}

.article-figure figcaption {
  margin-top: 0.75rem;
  padding: 0 0.35rem 0.2rem;
  color: var(--tk-muted);
  font-family: var(--body-font-family, "Manrope", system-ui, sans-serif);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 767.98px) {
  .article-figure-grid {
    grid-template-columns: 1fr;
  }
}

.article-course-promo {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff8ee 0%, #eef7fb 100%);
  border: 2px solid rgba(243, 156, 18, 0.35);
  box-shadow: 0 16px 36px rgba(26, 26, 46, 0.08);
}

.article-course-promo h2 {
  margin-top: 0;
}

.article-course-promo .cta-button {
  margin-top: 0.5rem;
}

.article-table {
  margin: 1.4rem 0 1.8rem;
  background: #fff;
}

.article-table th {
  background: linear-gradient(135deg, #1e3a5f, #2980b9);
  color: #fff;
  font-weight: 700;
}

.article-table td {
  color: var(--tk-text);
  vertical-align: top;
}

/* Авторские статьи */
.article-page {
  background:
    radial-gradient(circle at 8% 4%, rgba(41, 128, 185, 0.12), transparent 28rem),
    radial-gradient(circle at 95% 20%, rgba(243, 156, 18, 0.1), transparent 24rem),
    #f5f7fb;
}

.article-page__container {
  max-width: 1080px;
}

.article-page__back {
  margin-bottom: 1rem;
  font-weight: 700;
}

.article-page__card {
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(15, 35, 63, 0.14);
}

.article-page__header {
  padding: clamp(1.6rem, 5vw, 4rem) clamp(1.25rem, 6vw, 5rem) 2rem;
}

.article-page__header .section-heading {
  max-width: 850px;
  margin-bottom: 0.85rem;
  padding-left: 0;
  padding-right: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.65rem) !important;
  font-weight: 800;
  line-height: 1.18 !important;
  letter-spacing: -0.03em !important;
  color: var(--tk-navy) !important;
}

.article-page__header .section-heading::after {
  left: 0;
  bottom: -0.45rem;
  width: 3rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tk-orange), var(--tk-gold));
}

.news-article__title.section-heading,
.news-article .article-page__header .section-heading {
  max-width: 920px;
}

.article-page__excerpt {
  max-width: 790px;
  margin: 1.2rem 0 1.5rem;
  color: var(--tk-muted) !important;
  font-size: clamp(1.05rem, 2vw, 1.28rem) !important;
  line-height: 1.65 !important;
  text-align: left !important;
}

.article-page__author {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  border: 1px solid #dce5ef;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 35, 63, 0.08);
}

.article-page__author img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 8%;
}

.article-page__author span,
.article-page__author strong {
  display: block;
}

.article-page__author span {
  color: var(--tk-muted);
  font-size: 0.78rem;
}

.article-page__author strong {
  color: var(--tk-navy);
  font-size: 0.95rem;
}

.article-page__hero {
  margin: 0;
}

.article-page__hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-page__content {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem);
}

.article-page__content > p {
  text-align: left;
}

.article-lead {
  color: #26384c !important;
  font-family: var(--body-font-family, "Manrope", system-ui, sans-serif) !important;
  font-size: clamp(1.05rem, 1.5vw, 1.17rem) !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
}

.article-key-result {
  position: relative;
  margin: 2rem 0;
  padding: 1.35rem 1.45rem 1.35rem 1.55rem;
  border: 1px solid #ffe0b2;
  border-radius: 1.15rem;
  background: linear-gradient(145deg, #fffaf2 0%, #ffffff 55%, #f8fbff 100%);
  box-shadow: 0 14px 34px rgba(243, 156, 18, 0.1);
}

.article-key-result::before {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f39c12, #e67e22);
  content: "";
}

.article-key-result strong {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #9a5b00;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-key-result p {
  margin: 0.45rem 0 0;
  color: #1e293b !important;
  text-align: left;
}

/* Светлые корпоративные карточки внутри статей */
.article-card {
  margin: 1.75rem 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 35, 63, 0.05);
}

.article-card--soft {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.article-card--navy {
  border-color: #dbe7f5;
  background: linear-gradient(145deg, #f4f8fd, #ffffff);
}

.article-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-card__label i {
  font-size: 0.95rem;
}

.article-card ul,
.article-card ol {
  margin: 0 !important;
  padding-left: 1.2rem !important;
}

.article-card li {
  margin-bottom: 0.55rem;
}

.article-card li:last-child {
  margin-bottom: 0;
}

.article-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.5rem 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.article-pills li {
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
  padding: 0.55rem 0.9rem;
  border: 1px solid #dbe7f5;
  border-radius: 999px;
  background: #fff;
  color: #0f172a !important;
  font-size: 0.92rem !important;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.06);
  list-style: none !important;
}

.article-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid #dbe7f5;
  border-radius: 1.15rem;
  background: linear-gradient(135deg, #eff6ff, #ffffff 55%);
}

.article-flow span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 0.65rem;
  background: #fff;
  border: 1px solid #dbe7f5;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.article-flow i {
  color: #2563eb;
  font-size: 0.85rem;
}

.article-cta {
  display: grid;
  gap: 1rem;
  margin: 2.5rem 0 0.5rem;
  padding: 1.5rem 1.5rem;
  border: 1px solid #dbe7f5;
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.08), transparent 18rem),
    linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow: 0 16px 40px rgba(15, 35, 63, 0.07);
}

.article-cta__copy {
  margin: 0;
  color: #334155 !important;
  font-size: 1.02rem !important;
  line-height: 1.6 !important;
}

.article-cta__copy strong {
  color: #0f172a;
}

.article-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.article-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.8rem;
  font-family: var(--body-font-family, "Manrope", system-ui, sans-serif);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.article-btn:hover {
  transform: translateY(-2px);
}

.article-btn--primary {
  border: 0;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(243, 156, 18, 0.28);
}

.article-btn--primary:hover {
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(230, 126, 34, 0.34);
}

.article-btn--ghost {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a !important;
  box-shadow: 0 8px 20px rgba(15, 35, 63, 0.05);
}

.article-btn--ghost:hover {
  border-color: #93c5fd;
  color: #1d4ed8 !important;
}

.article-quote {
  margin: 1.75rem 0;
  padding: 1.2rem 1.35rem;
  border: 1px solid #dbe7f5;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.06);
}

.article-quote p {
  margin: 0 !important;
  color: #0f172a !important;
  font-weight: 650;
}

/* Страница новости */
.news-article .article-page__card {
  border: 1px solid #e2e8f0;
  background: #fff;
}

.news-article__header {
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.08), transparent 18rem),
    linear-gradient(180deg, #ffffff, #f8fafc);
}

.news-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.1rem;
}

.news-article__meta time {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
}

.news-article__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid #ffd8a8;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-article__title {
  max-width: 920px;
}

.news-article__hero {
  margin: 0 1.25rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 1.35rem;
  box-shadow: 0 18px 42px rgba(15, 35, 63, 0.1);
}

.news-article__hero img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Zoomable article / news photos (не для фото преподавателя) */
.article-image--zoomable {
  cursor: zoom-in;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.article-figure:hover .article-image--zoomable,
.news-article__hero:hover .article-image--zoomable,
.article-page__hero:hover .article-image--zoomable {
  transform: scale(1.015);
  filter: brightness(1.02);
}

.article-image-zoom__hint {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.article-figure:hover .article-image-zoom__hint,
.news-article__hero:hover .article-image-zoom__hint,
.article-page__hero:hover .article-image-zoom__hint,
.article-image--zoomable:focus-visible ~ .article-image-zoom__hint {
  opacity: 1;
  transform: translateY(0);
}

.article-image--zoomable:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.55);
  outline-offset: 3px;
}

body.article-image-lightbox-open {
  overflow: hidden;
}

.article-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.article-image-lightbox[hidden] {
  display: none !important;
}

.article-image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 31, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  animation: article-image-lightbox-fade 0.28s ease forwards;
}

.article-image-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1180px);
  max-height: 92vh;
  margin: 0;
  padding: 0.75rem;
  border-radius: 1.35rem;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: scale(0.94) translateY(16px);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.article-image-lightbox__dialog.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.article-image-lightbox__image {
  display: block;
  width: 100%;
  max-height: calc(92vh - 4.5rem);
  object-fit: contain;
  border-radius: 1rem;
  background: #0f172a;
}

.article-image-lightbox__caption {
  margin: 0.75rem 0.35rem 0.1rem;
  color: #16213e;
  font-family: var(--body-font-family, "Manrope", system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.article-image-lightbox__caption[hidden] {
  display: none !important;
}

.article-image-lightbox__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.article-image-lightbox__close:hover {
  transform: scale(1.05);
  background: rgba(243, 156, 18, 0.95);
}

@keyframes article-image-lightbox-fade {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-image--zoomable,
  .article-image-zoom__hint,
  .article-image-lightbox__dialog,
  .article-image-lightbox__backdrop {
    transition: none !important;
    animation: none !important;
  }

  .article-image-lightbox__dialog {
    opacity: 1;
    transform: none;
  }
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #0f172a !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(15, 35, 63, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.article-back-link:hover {
  border-color: #93c5fd;
  color: #1d4ed8 !important;
  transform: translateY(-1px);
}

.news-article__content .article-content h2,
.news-article .article-content h2 {
  padding-top: 0.35rem;
  border-top: 0;
}

@media (max-width: 767.98px) {
  .article-cta__actions {
    display: grid;
  }

  .article-btn {
    width: 100%;
  }

  .article-figure:hover .article-image--zoomable,
  .news-article__hero:hover .article-image--zoomable,
  .article-page__hero:hover .article-image--zoomable {
    transform: none;
    filter: none;
  }
}

.article-teacher {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.35fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  margin: 2.25rem 0;
  color: #16213e;
  background: #ffffff;
  border: 1px solid #d7e3ef;
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(15, 35, 63, 0.08);
}

.article-teacher__media,
.article-teacher > .article-teacher__photo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  min-height: 0;
  width: 100%;
  align-self: stretch;
  background:
    radial-gradient(circle at 50% 18%, rgba(56, 189, 248, 0.18), transparent 14rem),
    linear-gradient(165deg, #dbe7f3 0%, #eef3f8 55%, #e4ebf3 100%);
}

.article-teacher__photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 14rem;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 18%;
}

.article-teacher__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: clamp(1.25rem, 3.2vw, 2rem);
  background: #ffffff;
}

.article-teacher__eyebrow {
  display: inline-flex;
  align-self: start;
  margin: 0;
  padding: 0.32rem 0.7rem;
  color: #8a4b00 !important;
  background: #fff3cd;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-content .article-teacher h2,
.article-teacher h2 {
  margin: 0 !important;
  color: #10233f !important;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem) !important;
  line-height: 1.2 !important;
}

.article-content .article-teacher p,
.article-content .article-teacher li,
.article-teacher p,
.article-teacher li {
  color: #243447 !important;
  text-align: left !important;
}

.article-teacher__role {
  margin: 0 !important;
  color: #1f6f8b !important;
  font-weight: 700 !important;
  font-size: 0.98rem !important;
}

.article-teacher__triad {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin: 0.15rem 0 0.25rem;
}

.article-teacher__triad span {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border: 1px solid #cfe0f2;
  border-radius: 999px;
  background: #f5f9fd;
  color: #1d4ed8 !important;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.3;
}

.article-teacher__text {
  margin: 0 0 0.35rem !important;
  font-size: 0.98rem !important;
  line-height: 1.65 !important;
}

.article-teacher__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 0.2rem 0 0.55rem !important;
  padding: 0 !important;
  list-style: none !important;
}

.article-teacher__facts li {
  margin: 0 !important;
  padding: 0.7rem 0.75rem !important;
  background: #f3f8fc;
  border: 1px solid #dbe7f2;
  border-radius: 12px;
  color: #243447 !important;
  font-size: 0.86rem !important;
  line-height: 1.4 !important;
}

.article-teacher__facts strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #0f3460 !important;
  font-size: 0.98rem;
}

.article-teacher__link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  color: #0f3460 !important;
  font-weight: 800;
  text-decoration: none;
}

.article-teacher__link:hover {
  color: #f39c12 !important;
}

.article-personal-format h2 {
  margin: 0 0 0.35rem;
  color: #fff !important;
}

.article-toc {
  margin: 2.5rem 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #f0f6fb;
  border: 1px solid #d9e8f2;
  border-radius: 20px;
}

.article-toc h2 {
  margin-top: 0;
}

.article-toc ol {
  columns: 2;
  column-gap: 2.5rem;
  margin-bottom: 0;
}

.article-toc li {
  break-inside: avoid;
}

.article-section {
  scroll-margin-top: 100px;
}

.article-personal-format {
  margin: 3rem 0;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  color: #fff;
  background: linear-gradient(135deg, #174f70, #2e7d6e);
  border-radius: 24px;
}

.article-content .article-personal-format h2,
.article-personal-format h2 {
  margin: 0 0 0.75rem !important;
  color: #ffffff !important;
}

.article-content .article-personal-format p,
.article-personal-format p {
  color: #ffffff !important;
  text-align: left !important;
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
}

.article-format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.article-format-grid div {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
}

.article-format-grid strong,
.article-format-grid span {
  display: block;
}

.article-format-grid strong {
  margin-bottom: 0.3rem;
  color: #ffe7a8 !important;
}

.article-format-grid span {
  color: #ffffff !important;
  font-size: 0.95rem;
  line-height: 1.5;
}

.article-faq details {
  margin: 0.8rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid #dce5ef;
  border-radius: 14px;
  background: #fff;
}

.article-faq summary {
  cursor: pointer;
  color: var(--tk-navy);
  font-weight: 800;
}

.article-faq p {
  margin: 0.75rem 0 0;
  text-align: left;
}

.article-final-cta {
  margin-top: 3rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, #fff4df, #eef7fb);
  border: 2px solid rgba(243, 156, 18, 0.3);
  border-radius: 24px;
  text-align: center;
}

.article-final-cta h2 {
  margin-top: 0;
}

.article-final-cta p {
  text-align: center;
}

@media (max-width: 760px) {
  .article-teacher {
    grid-template-columns: 1fr;
  }

  .article-teacher__media {
    aspect-ratio: 1402 / 1122;
    max-height: none;
    min-height: 0;
  }

  .article-teacher__photo {
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center 20%;
  }

  .article-teacher__facts,
  .article-format-grid {
    grid-template-columns: 1fr;
  }

  .article-toc ol {
    columns: 1;
  }

  .article-page__author {
    align-items: flex-start;
    border-radius: 18px;
  }
}

/* О компании — единая типографика текста */
.about .section-lead,
.about .about-info p {
  font-family: var(--body-font-family, "Manrope", sans-serif);
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
}

.about .section-lead {
  color: var(--tk-muted) !important;
  text-align: center;
}

.about .about-info p {
  color: var(--tk-text) !important;
}

.about .about-info strong,
.about .about-info b {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: 700 !important;
  color: var(--tk-navy) !important;
}

.about .about-info a {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: 600 !important;
  color: var(--tk-blue) !important;
  text-decoration: none;
}

.about .about-info a:hover {
  color: var(--tk-orange) !important;
  text-decoration: underline;
}

.about .about-info a strong,
.about .about-info a b {
  font-weight: inherit !important;
  color: inherit !important;
}

.about-float-img {
  float: right;
  width: min(100%, 340px);
  margin: 0 0 1rem 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--tk-shadow);
}

.about-float-img img {
  width: 100%;
  height: auto;
  display: block;
}

.seo-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eef2f6;
}

.about .seo-keyword {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--tk-navy) !important;
  background: linear-gradient(180deg, #f8fafc, #eef4fb);
  border: 1px solid #d5e3f0;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.about .seo-keyword:hover {
  transform: translateY(-2px);
  border-color: var(--tk-orange);
  background: #fff8eb;
  color: var(--tk-navy) !important;
}

.stats-card {
  background: linear-gradient(135deg, var(--tk-orange) 0%, var(--tk-orange-dark) 100%);
  color: #fff !important;
  padding: 2rem 1.5rem;
  border-radius: var(--tk-radius);
  text-align: center;
  box-shadow: 0 16px 40px rgba(243, 156, 18, 0.35);
}

.stats-card h3 {
  color: #fff !important;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stats-card p {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600;
  margin: 0;
}

.gallery-thumb {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--tk-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-thumb:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(26, 26, 46, 0.18);
}

.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.about-gallery__item {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--tk-navy);
  box-shadow: var(--tk-shadow);
}

.about-gallery__item--featured {
  grid-column: 1 / -1;
}

.about-gallery__item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.about-gallery__item--featured img {
  height: 230px;
}

.about-gallery__item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.5rem 0.85rem 0.7rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  background: linear-gradient(transparent, rgba(15, 31, 54, 0.92));
}

.about-gallery__item:hover img {
  transform: scale(1.035);
}

/* Преимущества */
.benefits-section {
  background: linear-gradient(180deg, var(--tk-surface-warm) 0%, #fff 100%);
}

.benefit-card {
  background: #fff;
  border-radius: var(--tk-radius);
  padding: 2rem 1.75rem;
  height: 100%;
  border: 1px solid var(--tk-border);
  box-shadow: var(--tk-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tk-gradient-brand);
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(243, 156, 18, 0.5);
  box-shadow: var(--tk-shadow-hover);
}

.benefit-card--highlight {
  border-color: rgba(243, 156, 18, 0.35);
  background: linear-gradient(180deg, #fff 0%, var(--tk-gold-light) 100%);
}

.benefit-card--highlight::before {
  background: linear-gradient(90deg, var(--tk-orange-dark), var(--tk-gold));
}

.benefit-card h3 {
  font-size: 1.35rem;
  color: var(--tk-navy) !important;
  margin-bottom: 1.25rem;
}

.benefit-card p {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
  color: var(--tk-text) !important;
  font-size: 1rem;
}

.benefit-card p i {
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: #2ecc71;
}

.cta-panel {
  border-radius: var(--tk-radius);
  padding: 2.5rem 2rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 14px 34px rgba(26, 26, 46, 0.14);
}

.cta-panel:hover {
  transform: translateY(-4px);
}

.cta-panel--catalog {
  background: var(--tk-gradient-navy) !important;
}

.cta-panel--contact {
  background: var(--tk-gradient-brand) !important;
}

.cta-panel--interview {
  background: linear-gradient(135deg, var(--tk-blue-dark), var(--tk-navy-mid)) !important;
}

.cta-panel--interview .cta-button {
  color: #1a5276 !important;
}

.cta-panel h5 {
  color: #fff !important;
}

.cta-button {
  background: #fff;
  color: var(--tk-navy) !important;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: var(--tk-navy) !important;
}

.cta-panel--catalog .cta-button {
  color: var(--tk-navy) !important;
}

.cta-panel--contact .cta-button {
  color: var(--tk-orange-dark) !important;
}

/* Директор — фото и текст в одной карточке */
.director-section {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.director-block {
  padding: 0;
  overflow: hidden;
}

.director-block__photo {
  container-type: inline-size;
  container-name: director-photo;
  background: linear-gradient(160deg, var(--tk-navy) 0%, #0f3460 100%);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100%;
  overflow-x: clip;
}

.director-block__photo img.teacher-photo {
  border: 0;
  box-shadow: none;
}

.director-block__photo h3 {
  color: #fff !important;
  font-size: 1.35rem;
  margin: 1.25rem 0 0.35rem;
}

.director-block__photo .director-role {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.director-block__photo .director-role span {
  color: #ffc857;
}

.director-badge {
  margin-top: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(243, 156, 18, 0.25);
  border: 1px solid rgba(255, 200, 87, 0.4);
}

.director-badge--rzd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1rem;
  padding: 0.35rem 0.55rem;
  max-width: 100%;
  width: max-content;
  font-size: clamp(0.58rem, 2.4cqi, 0.78rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
  flex-wrap: nowrap;
  color: #7f0000 !important;
  background: linear-gradient(135deg, #ffe082 0%, #ffb300 100%);
  border: none;
  box-shadow: none;
  text-shadow: none;
}

.director-badge--rzd span {
  white-space: nowrap;
  flex-shrink: 0;
}

.director-badge--rzd i {
  flex-shrink: 0;
  font-size: 0.9em;
  color: #c62828;
}

@container director-photo (max-width: 340px) {
  .director-badge--rzd {
    font-size: 0.62rem;
    padding: 0.32rem 0.48rem;
  }
}

@container director-photo (max-width: 300px) {
  .director-badge--rzd {
    font-size: 0.56rem;
    padding: 0.28rem 0.4rem;
    gap: 0.2rem;
  }
}

@container director-photo (max-width: 260px) {
  .director-badge--rzd {
    font-size: 0.5rem;
    padding: 0.25rem 0.35rem;
  }
}

.director-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.director-column {
  background: #f8fafc;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.director-column h4 {
  font-size: 0.95rem;
  color: var(--tk-navy) !important;
  margin-bottom: 0.5rem;
}

.director-column h4 i {
  color: var(--tk-orange);
  margin-right: 0.35rem;
}

.director-column p {
  font-size: 0.92rem !important;
  margin-bottom: 0 !important;
}

.director-block__info {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.director-block__info p {
  color: var(--tk-text) !important;
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.director-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.director-fact {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #f0f4f8;
  color: var(--tk-navy);
  border: 1px solid #e2e8f0;
}

.director-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--tk-blue) !important;
  text-decoration: none;
}

.director-links a:hover {
  color: var(--tk-orange) !important;
}

/* Технические собеседования */
.tech-interview-section {
  background: linear-gradient(180deg, #fff 0%, #eef5fb 100%);
}

.interview-promo-card {
  background: #fff;
  border-radius: var(--tk-radius);
  padding: 2rem;
  height: 100%;
  border: 1px solid #dce8f5;
  box-shadow: var(--tk-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.interview-promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(41, 128, 185, 0.15);
}

.interview-promo-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.interview-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #eaf4fc;
  color: #1a5276;
}

.interview-promo-card h3 {
  font-size: 1.45rem;
  color: var(--tk-navy) !important;
  margin-bottom: 1rem;
}

.interview-promo-card > p {
  color: var(--tk-muted) !important;
  margin-bottom: 1.25rem;
}

.interview-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.interview-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  color: var(--tk-text) !important;
  font-size: 0.98rem;
}

.interview-checklist i {
  color: #27ae60;
  font-weight: 700;
  margin-top: 0.15rem;
}

.interview-promo-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-interview-primary,
.btn-interview-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-interview-primary {
  background: linear-gradient(135deg, var(--tk-orange), var(--tk-orange-dark));
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(243, 156, 18, 0.35);
}

.btn-interview-outline {
  border: 2px solid var(--tk-navy);
  color: var(--tk-navy) !important;
  background: transparent;
}

.btn-interview-primary:hover,
.btn-interview-outline:hover {
  transform: translateY(-2px);
  color: inherit;
}

.btn-interview-primary:hover {
  color: #fff !important;
}

.interview-audience-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.interview-audience-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.interview-audience-card:hover {
  transform: translateX(6px);
  border-color: var(--tk-blue);
}

.interview-audience-card__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.interview-audience-card h4 {
  font-size: 1.05rem;
  color: var(--tk-navy) !important;
  margin-bottom: 0.5rem;
}

.interview-audience-card p {
  font-size: 0.9rem;
  color: var(--tk-muted) !important;
  margin: 0;
}

/* Индивидуальные услуги */
.personal-services-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 15%, rgba(243, 156, 18, 0.12) 0 10%, transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(255, 209, 102, 0.18) 0 12%, transparent 30%),
    linear-gradient(180deg, var(--tk-surface-warm) 0%, #f6f8fb 100%);
}

.personal-services-section::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border: 1px solid rgba(243, 156, 18, 0.2);
  border-radius: 34px;
  pointer-events: none;
}

.personal-services-section::after {
  content: "Персонально";
  position: absolute;
  right: -2rem;
  bottom: 1rem;
  color: rgba(26, 26, 46, 0.035);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.personal-services-section .container {
  position: relative;
  z-index: 1;
}

.personal-services-section .section-heading,
.personal-services-section .section-lead {
  color: var(--tk-navy) !important;
  text-shadow: none;
}

.personal-services-section .section-lead {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  display: inline-block;
  padding: 0.95rem 1.45rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(243, 156, 18, 0.35);
  color: var(--tk-text) !important;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.45;
  text-shadow: none;
  box-shadow: 0 12px 32px rgba(26, 26, 46, 0.1);
}

.personal-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--tk-radius);
  padding: 2.25rem;
  background: #ffffff;
  border: 1px solid var(--tk-border);
  box-shadow: var(--tk-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.personal-service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--tk-gradient-brand);
}

.personal-service-card--learning::before {
  background: linear-gradient(90deg, var(--tk-blue-dark), var(--tk-blue));
}

.personal-service-card--corporate::before {
  background: var(--tk-gradient-navy);
}

.personal-service-card--mentorship::before {
  background: linear-gradient(90deg, var(--tk-orange-dark), var(--tk-gold));
}

.personal-service-card--audit::before {
  background: linear-gradient(90deg, var(--tk-blue-dark), var(--tk-orange));
}

.personal-service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(243, 156, 18, 0.42);
  box-shadow: var(--tk-shadow-hover);
}

.personal-service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.personal-service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--tk-orange), var(--tk-orange-dark));
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 12px 28px rgba(243, 156, 18, 0.25);
}

.personal-service-card--learning .personal-service-card__icon {
  background: linear-gradient(135deg, var(--tk-blue-dark), var(--tk-blue));
  box-shadow: 0 12px 28px rgba(41, 128, 185, 0.22);
}

.personal-service-card--corporate .personal-service-card__icon {
  background: var(--tk-gradient-navy);
  box-shadow: 0 12px 28px rgba(26, 26, 46, 0.22);
}

.personal-service-card--audit .personal-service-card__icon {
  background: linear-gradient(135deg, var(--tk-blue-dark), var(--tk-orange));
}

.personal-service-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff3cd, #ffe1a6);
  color: #7a3f00;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.personal-service-card h3 {
  color: var(--tk-navy) !important;
  font-size: 1.75rem;
  margin-bottom: 0.9rem;
}

.personal-service-card__lead {
  color: var(--tk-muted) !important;
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.personal-service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.personal-service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  color: var(--tk-text) !important;
  line-height: 1.55;
}

.personal-service-list i {
  color: #27ae60;
  margin-top: 0.2rem;
  font-weight: 700;
}

.personal-service-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #edf2f7;
}

.personal-service-price {
  display: flex;
  flex-direction: column;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  background: #fff8ec;
  border: 1px solid #ffe2ad;
}

.personal-service-price span,
.personal-service-price small {
  color: var(--tk-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.personal-service-price strong {
  color: #d35400;
  font-size: 1.95rem;
  line-height: 1.1;
}

.personal-service-button {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  justify-content: center;
  padding: 0.95rem 1.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tk-orange), var(--tk-orange-dark));
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(243, 156, 18, 0.38);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.personal-service-card--learning .personal-service-button {
  background: linear-gradient(135deg, var(--tk-blue-dark), var(--tk-navy-mid));
  box-shadow: 0 14px 34px rgba(41, 128, 185, 0.38);
}

.personal-service-button:hover {
  transform: translateY(-2px);
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(26, 26, 46, 0.18);
}

.personal-service-button--outline {
  background: transparent;
  border: 2px solid var(--tk-navy);
  color: var(--tk-navy) !important;
  box-shadow: none;
}
.personal-service-button--outline:hover {
  background: var(--tk-navy);
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(26, 26, 46, 0.18);
}

@media (min-width: 992px) {
  .personal-service-card h3 {
    min-height: 2.35rem;
  }

  .personal-service-card__lead {
    min-height: 5.25rem;
  }

  .personal-service-list {
    min-height: 12.5rem;
  }

  .personal-service-list li {
    min-height: 2.55rem;
  }

  .personal-service-card__footer {
    min-height: 6.75rem;
  }
}

@media (max-width: 991.98px) {
  .personal-services-section {
    overflow-x: clip;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .personal-services-section::before {
    inset: 0.65rem;
    border-radius: 22px;
  }

  .personal-services-section::after {
    display: none;
  }

  .personal-services-section > .container {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .personal-services-section .row {
    --bs-gutter-x: 1rem;
    margin-left: 0;
    margin-right: 0;
  }

  .personal-services-section .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
    min-width: 0;
    max-width: 100%;
  }

  .personal-service-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 1.35rem 1.1rem;
    box-sizing: border-box;
  }

  .personal-service-card__top {
    gap: 0.65rem;
    flex-wrap: wrap;
  }

  .personal-service-card h3 {
    font-size: 1.35rem;
    overflow-wrap: anywhere;
  }

  .personal-service-card__lead,
  .personal-service-list li {
    overflow-wrap: anywhere;
  }

  .personal-service-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .personal-service-card__footer .d-flex,
  .personal-service-card__actions {
    min-width: 0 !important;
    width: 100%;
    flex: 1 1 auto;
    align-items: stretch;
  }

  .personal-service-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.interview-price-chip {
  text-align: center;
  background: linear-gradient(135deg, var(--tk-navy), #0f3460);
  color: #fff;
  border-radius: var(--tk-radius);
  padding: 1.25rem 1.5rem;
}

.interview-price-chip__label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.interview-price-chip strong {
  display: block;
  font-size: 2.25rem;
  color: #ffc857 !important;
  line-height: 1.2;
  margin: 0.25rem 0;
}

.interview-price-chip__note {
  font-size: 0.85rem;
  opacity: 0.85;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Опыт корпоративного преподавания */
.corporate-experience-section {
  background: linear-gradient(180deg, #fff 0%, #f4f7fb 100%);
}

.corporate-experience-frame {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.35rem 1.75rem;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.65;
  text-align: center;
  color: var(--tk-navy) !important;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, #fff8ee 48%, #fff3dc 100%);
  border: 2px solid rgba(243, 156, 18, 0.65);
  border-radius: var(--tk-radius);
  box-shadow:
    0 10px 36px rgba(26, 26, 46, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  position: relative;
}

.corporate-experience-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(243, 156, 18, 0.22);
  border-radius: calc(var(--tk-radius) - 4px);
  pointer-events: none;
}

.corporate-experience-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: min(12rem, 40%);
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tk-orange), var(--tk-blue));
}

/* Отзывы */
.reviews-section {
  background: linear-gradient(180deg, #f0f4f8 0%, #fff 50%);
}

.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2.5rem;
  margin-bottom: 1.75rem;
}

.reviews-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 auto 1.5rem;
  padding: 0.35rem;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.reviews-filters__tab {
  margin: 0;
  padding: 0.5rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.reviews-filters__tab:hover {
  color: #0f172a;
  background: #f8fafc;
}

.reviews-filters__tab:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

.reviews-filters__tab.is-active {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.reviews-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.reviews-carousel__viewport {
  min-width: 0;
  outline: none;
}

.reviews-carousel__page {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.reviews-carousel__slide {
  min-width: 0;
  display: flex;
}

.reviews-carousel__nav {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.reviews-carousel__nav:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.reviews-carousel__nav:disabled,
.reviews-carousel__nav[hidden] {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.reviews-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.reviews-carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.reviews-carousel__dot.is-active {
  width: 1.35rem;
  background: #f97316;
}

.reviews-carousel__empty {
  margin: 0.5rem 0 1rem;
  text-align: center;
  color: #64748b;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .reviews-carousel__page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .reviews-filters {
    width: 100%;
    border-radius: 1rem;
  }

  .reviews-filters__tab {
    flex: 1 1 auto;
  }

  .reviews-carousel {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .reviews-carousel__nav {
    position: absolute;
    top: 42%;
    z-index: 2;
  }

  .reviews-carousel__nav--prev {
    left: 0.15rem;
  }

  .reviews-carousel__nav--next {
    right: 0.15rem;
  }

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

  .reviews-carousel__viewport {
    padding: 0 2.4rem;
  }
}

.review-card-item__socials {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.review-card-item__social {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #334155;
  text-decoration: none;
  font-size: 0.85rem;
}

.review-card-item__social:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.reviews-summary__item {
  text-align: center;
}

.reviews-summary__item strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--tk-orange);
  line-height: 1.1;
}

.reviews-summary__item span {
  font-size: 0.9rem;
  color: var(--tk-muted);
  font-weight: 600;
}

#reviewsPreviewGrid {
  margin-bottom: 2rem;
  align-items: stretch;
}

#reviewsPreviewGrid > [class*="col-"] {
  display: flex;
}

.review-card-item {
  background: #fff;
  border-radius: var(--tk-radius);
  padding: 1.5rem;
  height: 100%;
  border: 1px solid #e9ecef;
  box-shadow: var(--tk-shadow);
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(26, 26, 46, 0.12);
}

.review-card-item__top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-card-item__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}

.review-card-item__avatar--primary { background: linear-gradient(135deg, #3498db, #2980b9); }
.review-card-item__avatar--success { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.review-card-item__avatar--warning { background: linear-gradient(135deg, #f39c12, #e67e22); }
.review-card-item__avatar--info { background: linear-gradient(135deg, #1abc9c, #16a085); }
.review-card-item__avatar--danger { background: linear-gradient(135deg, #e74c3c, #c0392b); }

.review-card-item__avatar--photo {
  padding: 0;
  overflow: hidden;
  background: #eef2f6;
  border: 2px solid rgba(52, 152, 219, 0.15);
}

.review-card-item__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-card-item__meta h3 {
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  color: var(--tk-navy) !important;
}

.review-stars {
  color: var(--tk-orange);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.review-card-item__text {
  flex: 1;
  color: var(--tk-text) !important;
  font-size: 0.98rem;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1rem;
}

.review-card-item__footer {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #eef2f6;
  font-size: 0.82rem;
  color: var(--tk-muted) !important;
}

#reviewsPreviewGrid .review-card-item__top {
  min-height: 52px;
}

#reviewsPreviewGrid .review-card-item__text {
  min-height: 0;
  max-height: none;
  overflow: visible;
  display: block;
}

#reviewsPreviewGrid .review-card-item.is-expanded .review-card-item__text {
  min-height: 0;
  max-height: none;
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
}

.review-card-item__more {
  align-self: flex-start;
  margin: 0.35rem 0 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: #2563eb;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}

.review-card-item__more:hover,
.review-card-item__more:focus-visible {
  color: #1d4ed8;
  text-decoration: underline;
}

#reviewsPreviewGrid .review-card-item__footer {
  min-height: 0;
}

.review-card-item__footer span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.review-card-item__footer i {
  color: var(--tk-orange);
}

.review-card-item__source {
  font-size: 0.75rem;
  opacity: 0.85;
}

.reviews-screenshots {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.reviews-screenshots a {
  flex: 0 0 200px;
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--tk-shadow);
  transition: transform 0.25s ease;
}

.reviews-screenshots a:hover {
  transform: scale(1.03);
}

.reviews-screenshots img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.btn-reviews-all {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff !important;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 10px 30px rgba(52, 152, 219, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-reviews-all:hover {
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(52, 152, 219, 0.45);
}

/* Модальное окно отзывов */
#reviewsModal .modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(26, 26, 46, 0.25);
}

#reviewsModal .modal-header {
  background: linear-gradient(135deg, var(--tk-navy), #0f3460);
  color: #fff;
  border: none;
  padding: 1.25rem 1.5rem;
}

#reviewsModal .modal-title {
  color: #fff !important;
  font-weight: 700;
}

#reviewsModal .btn-close {
  filter: invert(1);
  opacity: 0.9;
}

#reviewsModal .modal-body {
  background: #f8fafc;
  max-height: min(75vh, 720px);
  overflow-y: auto;
  padding: 1.5rem;
}

.reviews-modal-intro {
  text-align: center;
  color: var(--tk-muted) !important;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.reviews-modal-intro a {
  font-weight: 700;
  color: var(--tk-blue) !important;
}

.reviews-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

#reviewsModal .review-card-item {
  animation: none;
  opacity: 1;
}

/* Курсы */
.course-card {
  background: #fff;
  border-radius: var(--tk-radius);
  overflow: hidden;
  height: 100%;
  border: 1px solid #e9ecef;
  box-shadow: var(--tk-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 56px rgba(26, 26, 46, 0.14);
}

.course-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e8f4fc 0%, #f0f4f8 100%);
}

.course-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  transition: transform 0.5s ease;
}

.course-card__media--dark {
  background: #1a1a2e;
}

.course-card__media--dark img {
  object-fit: cover;
  padding: 0;
}

.course-card:hover .course-card__media img {
  transform: scale(1.06);
}

.course-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card__body h3 {
  font-size: 1.25rem;
  color: var(--tk-navy) !important;
  margin-bottom: 0.75rem;
}

.course-card__body p {
  color: var(--tk-muted) !important;
  font-size: 0.95rem;
  flex: 1;
}

.course-card__link {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--tk-orange-dark) !important;
  text-decoration: none;
}

.course-card__link:hover {
  color: var(--tk-red) !important;
}

.catalog-banner {
  background: linear-gradient(135deg, var(--tk-navy) 0%, var(--tk-navy-2) 100%);
  border-radius: var(--tk-radius);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.catalog-banner h5 {
  color: #fff !important;
  margin-bottom: 1rem;
}

.catalog-banner .cta-button {
  background: var(--tk-orange);
  color: #fff !important;
}

.catalog-banner .cta-button:hover {
  background: var(--tk-orange-dark);
  color: #fff !important;
}

.catalog-banner .cta-button--outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff !important;
}

.catalog-banner .cta-button--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

/* Контакты */
.section-contact {
  scroll-margin-top: 88px;
  background: linear-gradient(160deg, var(--tk-navy) 0%, var(--tk-navy-2) 100%);
}

.section-contact svg {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -2px;
}

.contact-container-wrap {
  background: transparent !important;
  padding: 2.5rem 0 5rem !important;
}

.contact-form {
  margin-top: 0 !important;
  margin-right: 0 !important;
}

.contact-thumb {
  position: static !important;
  bottom: auto !important;
  margin-bottom: 0 !important;
  height: 100%;
}

.contact-thumb .contact-info-card {
  height: 100%;
}

.contact-form-card {
  background: #fff;
  border-radius: var(--tk-radius);
  padding: 2rem 2.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--tk-muted) !important;
}

.contact-form__label strong {
  color: var(--tk-orange) !important;
}

.contact .custom-form h2,
.contact .contact-form__title,
#section_5 .contact-form-card h2,
#section_5 .contact-form__title {
  color: #1a1a2e !important;
  -webkit-text-fill-color: #1a1a2e !important;
  text-shadow: none !important;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.contact-info-card {
  border-radius: var(--tk-radius);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.contact-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-quick-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  text-decoration: none !important;
  background: linear-gradient(165deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(16, 42, 77, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-quick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 156, 18, 0.45);
  box-shadow: 0 12px 28px rgba(16, 42, 77, 0.1);
}

.contact-quick-card__icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  font-size: 1rem;
}

.contact-quick-card--phone .contact-quick-card__icon {
  background: linear-gradient(135deg, #2e7d6e 0%, #1a5c4f 100%);
}

.contact-quick-card--max .contact-quick-card__icon {
    background: linear-gradient(135deg, #6b4eff 0%, #3d2db8 100%);
    color: #fff;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.contact-quick-card--vk .contact-quick-card__icon {
  background: linear-gradient(135deg, #0077ff 0%, #0055cc 100%);
}

.contact-quick-card--email .contact-quick-card__icon {
  background: linear-gradient(135deg, #2b6cb0 0%, #1a365d 100%);
}

.contact-quick-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.contact-quick-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #718096 !important;
}

.contact-quick-card__value {
  font-size: 0.88rem;
  font-weight: 700;
  color: #102a4d !important;
  line-height: 1.3;
}

.contact-quick-card__hint {
  font-size: 0.72rem;
  color: #718096 !important;
}

@media (max-width: 575.98px) {
  .contact-quick-actions {
    grid-template-columns: 1fr;
  }

  .contact-quick-card {
    padding: 1rem 1.05rem;
  }

  .contact-quick-card__value {
    font-size: 0.95rem;
  }

  .contact-info-card {
    padding: 1rem;
  }

  .contact-map {
    min-height: 220px;
  }
}

.contact-details {
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e8edf2;
}

.contact-details__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  grid-template-rows: auto auto;
  gap: 0.1rem 0.75rem;
  padding: 0.55rem 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #4a5568;
  border-bottom: 1px solid #f0f3f6;
}

.contact-details__row:last-child {
  border-bottom: none;
}

.contact-details__row--stack {
  display: block;
  padding: 0.65rem 0;
}

.contact-details__row--stack .contact-details__city {
  display: block;
  grid-column: unset;
  grid-row: unset;
  margin-bottom: 0.2rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.6875rem;
}

.contact-details__row--stack .contact-details__text {
  display: block;
  grid-column: unset;
  grid-row: unset;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.contact-details__row--meeting {
  margin-top: 0.15rem;
  padding: 0.7rem 0.65rem !important;
  background: linear-gradient(90deg, rgba(243, 156, 18, 0.12) 0%, rgba(243, 156, 18, 0.04) 100%);
  border-left: 3px solid var(--tk-orange);
  border-radius: 0.35rem;
}

.contact-details__row--meeting .contact-details__city {
  color: var(--tk-navy) !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  line-height: 1.4;
}

.contact-details__city {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  padding-top: 0.05rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #718096;
}

.contact-details__text {
  grid-column: 2;
  grid-row: 1;
  color: var(--tk-navy);
  font-weight: 500;
}

.contact-details__meta {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.75rem;
  color: #94a3b8;
}

.contact-details__row--link {
  display: block;
  padding: 0.45rem 0;
}

.contact-details__link {
  color: var(--tk-navy) !important;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.contact-details__link:hover {
  color: var(--tk-orange) !important;
}

.contact-info-card .google-map {
  margin-top: 0.25rem;
}

.contact-map-wrap {
  margin-top: 0.75rem;
}

.contact-map-caption {
  font-size: 0.875rem;
  color: #4a5568;
  line-height: 1.45;
}

.contact-map {
  display: block;
  width: 100%;
  min-height: 280px;
  border: 0;
  background: #e8eef4;
}

.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tk-navy) !important;
  text-decoration: none;
}

.contact-map-link:hover {
  color: var(--tk-orange) !important;
}

.contact-info-card h4 a {
  color: var(--tk-navy) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info-card h4 a:hover {
  color: var(--tk-orange) !important;
}

.contact .form-control {
  background: #fff !important;
  border: 2px solid #dde3ea !important;
  border-radius: 10px !important;
  border-bottom: 2px solid #dde3ea !important;
  padding: 0.85rem 1rem;
  color: var(--tk-text);
  margin-bottom: 0;
}

.contact .form-control::placeholder {
  color: #8a97a8;
  opacity: 1;
}

.contact .form-control:hover {
  border-color: #c5ced8 !important;
  background: #fff !important;
}

.contact .form-control:focus {
  border-color: var(--tk-orange) !important;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.22);
  background: #fff !important;
}

.contact textarea.form-control {
  min-height: 148px;
  resize: vertical;
}

.contact button.form-control,
.contact .custom-form button[type="submit"] {
  background: var(--tk-orange) !important;
  color: #fff !important;
  font-weight: 700;
  border: none !important;
  border-radius: 10px !important;
  padding: 0.95rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(243, 156, 18, 0.35);
}

.contact button.form-control:hover,
.contact .custom-form button[type="submit"]:hover,
.contact button.form-control:focus,
.contact .custom-form button[type="submit"]:focus {
  background: var(--tk-orange-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(230, 126, 34, 0.4);
}

@media screen and (max-width: 991px) {
  .contact-form {
    margin-bottom: 0 !important;
  }

  .contact-container-wrap {
    padding-bottom: 3.5rem !important;
  }
}

/* Футер */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 2.25rem 0;
  background: linear-gradient(135deg, #1e3a5f 0%, #2980b9 48%, #533483 100%);
  border-top: 3px solid rgba(243, 156, 18, 0.7);
  box-shadow: 0 -10px 36px rgba(26, 26, 46, 0.22);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 50%, rgba(243, 156, 18, 0.22) 0%, transparent 48%),
    radial-gradient(circle at 88% 50%, rgba(52, 152, 219, 0.28) 0%, transparent 42%);
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.site-footer .copyright-text,
.site-footer p,
.site-footer a {
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  text-shadow: none !important;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  opacity: 1 !important;
}

.site-footer a {
  color: #ffd166 !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.site-footer .social-icon-link {
  color: rgba(255, 255, 255, 0.8) !important;
}

.site-footer .social-icon-link:hover {
  color: var(--tk-orange) !important;
}

.site-footer__brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffe08a !important;
  text-shadow: 0 0 18px rgba(255, 209, 102, 0.45), 0 1px 2px rgba(0, 0, 0, 0.25);
}

.site-footer p.site-footer__brand,
.site-footer p.site-footer__lead,
.site-footer p.site-footer__copy,
.site-footer .copyright-text {
  color: #ffffff !important;
  opacity: 1 !important;
}

.site-footer p.site-footer__brand {
  color: #ffe08a !important;
}

.site-footer__lead,
.site-footer__copy {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  opacity: 1 !important;
}

.site-footer__copy {
  font-size: 0.9rem !important;
  color: #f8fafc !important;
  letter-spacing: 0.02em;
}

/* Навбар */
.navbar.sticky-top {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.97) !important;
}

.nav-link {
  font-weight: 600;
  color: var(--tk-text) !important;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--tk-orange) !important;
}

@media (max-width: 768px) {
  .about-float-img {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem;
  }

  .about-gallery__item img,
  .about-gallery__item--featured img {
    height: 190px;
  }

  .main-banner {
    min-height: auto;
  }

  .main-banner .video-overlay {
    min-height: auto;
    align-items: flex-start;
    padding: 1.25rem 0.75rem 2rem;
  }

  .main-banner .caption {
    padding-left: 0;
    padding-right: 0;
  }

  .main-banner .hero-main-title {
    font-size: clamp(1.35rem, 6.5vw, 1.75rem) !important;
    line-height: 1.28 !important;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
  }

  .main-banner .hero-badge {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.65rem;
    max-width: 100%;
  }

  .hero-badge--geo {
    font-size: clamp(0.58rem, 2.8vw, 0.72rem);
    letter-spacing: 0.01em;
  }

  .hero-eyebrows {
    gap: 0.4rem;
    margin-bottom: 0.8rem;
  }

  .main-banner .hero-programming-label {
    font-size: clamp(0.68rem, 3vw, 0.85rem);
    letter-spacing: 0.04em;
    line-height: 1.45;
    margin-bottom: 0.85rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-digital-cta {
    gap: 0.65rem;
    padding: 0.75rem 0.8rem;
    border-radius: 14px;
  }

  .hero-digital-cta__icon {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.2rem;
  }

  .hero-digital-cta strong {
    font-size: 1.05rem;
  }

  .hero-digital-cta__eyebrow,
  .hero-digital-cta__copy > span:last-child {
    font-size: 0.65rem;
  }

  .hero-digital-cta__arrow {
    font-size: 1.2rem;
  }

  .main-banner .hero-subtitle {
    font-size: clamp(0.92rem, 3.8vw, 1.05rem);
  }

  .section-heading,
  h2.section-heading {
    font-size: clamp(1.15rem, 5.4vw, 1.6rem) !important;
    line-height: 1.28 !important;
    letter-spacing: -0.01em !important;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .section-lead {
    font-size: 1rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .director-block__info {
    padding: 1.5rem;
  }

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

@media (max-width: 480px) {
  .main-banner .hero-main-title {
    font-size: clamp(1.1rem, 5.8vw, 1.35rem) !important;
    line-height: 1.32 !important;
  }

  .section-heading,
  h2.section-heading {
    font-size: clamp(1.05rem, 5vw, 1.35rem) !important;
    line-height: 1.32 !important;
  }
}

@media (min-width: 769px) {
  .main-banner .video-overlay {
    align-items: center;
    padding: 3rem 1.5rem 2.5rem;
  }
}

.projects.section-padding.pb-0 {
  padding-bottom: 2.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .benefit-card:hover,
  .course-card:hover,
  .gallery-thumb:hover,
  .review-card-item:hover,
  .reviews-screenshots a:hover,
  .cta-panel:hover,
  .director-photo:hover,
  .interview-promo-card:hover,
  .interview-audience-card:hover,
  .hero-pillar:hover {
    transform: none;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- License trust badge & benefits --- */
.hero-license-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(100%, 34rem);
  margin: 0.85rem auto 1.1rem;
  padding: 0.85rem 1.15rem;
  text-align: left;
  text-decoration: none;
  color: #1a1a2e !important;
  background: linear-gradient(135deg, #ffd166 0%, #f39c12 55%, #e67e22 100%);
  border: 2px solid #fff3c4;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(243, 156, 18, 0.55), 0 0 0 3px rgba(255, 209, 102, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-license-badge:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.05);
  color: #1a1a2e !important;
  box-shadow: 0 14px 34px rgba(243, 156, 18, 0.65), 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.hero-license-badge i {
  font-size: 1.75rem;
  color: #1a1a2e;
  flex-shrink: 0;
}

.hero-license-badge__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1.3;
  flex: 1;
}

.hero-license-badge__text strong {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero-license-badge__text span {
  font-size: 0.84rem;
  font-weight: 600;
  opacity: 0.92;
}

.hero-license-badge__cta {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(26, 26, 46, 0.12);
  color: #1a1a2e;
}

.hero-license-badge--light {
  background: linear-gradient(135deg, #fff8e7 0%, #ffd166 100%);
  border-color: rgba(243, 156, 18, 0.45);
  color: #1a1a2e !important;
}

.hero-license-badge--light:hover {
  color: #1a1a2e !important;
}

.hero-license-badge--light i {
  color: #c0392b;
}

.hero-digital-cta {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 40rem);
  gap: 0.9rem;
  overflow: hidden;
  padding: 0.9rem 1.05rem;
  color: #ffffff !important;
  text-align: left;
  text-decoration: none;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 209, 102, 0.2), transparent 28%),
    var(--tk-gradient-navy);
  border: 1px solid rgba(255, 209, 102, 0.55);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: digital-cta-pulse 3s infinite;
}

.hero-digital-cta::after {
  position: absolute;
  top: -3rem;
  right: 2.5rem;
  width: 7rem;
  height: 12rem;
  content: "";
  background: rgba(255, 209, 102, 0.08);
  transform: rotate(25deg);
}

.hero-digital-cta:hover {
  color: #ffffff !important;
  filter: brightness(1.1);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255, 209, 102, 0.16);
  animation: none;
}

.hero-digital-cta__icon,
.hero-digital-cta__arrow {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  color: var(--tk-gold);
}

.hero-digital-cta__icon {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  font-size: 1.45rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 12px;
}

.hero-digital-cta__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  line-height: 1.28;
}

.hero-digital-cta__eyebrow {
  color: var(--tk-gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-digital-cta strong {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.hero-digital-cta strong em {
  color: var(--tk-gold);
  font-style: normal;
}

.hero-digital-cta__copy > span:last-child {
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-digital-cta__arrow {
  font-size: 1.45rem;
}

@keyframes digital-cta-pulse {
  0% {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 0 rgba(255, 209, 102, 0.36);
  }
  70% {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 8px rgba(255, 209, 102, 0);
  }
  100% {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 0 rgba(255, 209, 102, 0);
  }
}

.main-banner .btn-hero-catalog {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 45%, #d35400 100%) !important;
  box-shadow: 0 12px 32px rgba(230, 126, 34, 0.45) !important;
}

.main-banner .btn-hero-tax {
  background: var(--tk-gradient-navy) !important;
  color: #fff !important;
  box-shadow: 0 12px 32px rgba(7, 24, 47, 0.42) !important;
  border: 1px solid rgba(255, 209, 102, 0.35);
}

.main-banner .btn-hero-catalog .btn-icon,
.main-banner .btn-hero-tax .btn-icon {
  font-size: 1.55rem;
  margin-bottom: 0.35rem;
}

.main-banner .btn-hero-catalog .btn-icon i,
.main-banner .btn-hero-tax .btn-icon i {
  color: inherit;
}

.trust-benefits {
  background: linear-gradient(180deg, #fff8e7 0%, #f7f8fc 40%, #fff 100%);
}

.trust-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 8px 24px rgba(22, 33, 62, 0.06);
  height: 100%;
}

.trust-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: rgba(243, 156, 18, 0.14);
  color: #d68910;
  font-size: 1.35rem;
}

.trust-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  color: #1a1a2e;
}

.trust-card__text {
  color: #4a5568 !important;
  font-size: 0.98rem;
  line-height: 1.6;
  text-align: left !important;
  flex: 1;
}

.trust-card__link {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 700;
  color: #d68910 !important;
  text-decoration: none;
}

.trust-card__link:hover {
  color: #b9770e !important;
  text-decoration: underline;
}

.btn-cta-license {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta-license:hover {
  transform: translateY(-2px);
}

.btn-cta-license--primary {
  color: #fff !important;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  box-shadow: 0 8px 22px rgba(230, 126, 34, 0.35);
}

.btn-cta-license--tax {
  color: #fff !important;
  background: var(--tk-gradient-navy);
  box-shadow: 0 8px 22px rgba(26, 26, 46, 0.28);
}

.home-faq__accordion {
  max-width: 820px;
  margin: 0 auto;
}

.home-faq .accordion-button {
  color: var(--tk-navy);
  background: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  box-shadow: none;
}

.home-faq .accordion-item {
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid var(--tk-border);
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.06);
}

.home-faq .accordion-button:not(.collapsed) {
  color: var(--tk-navy);
  background: var(--tk-gold-light);
}

.home-faq .accordion-button:focus {
  border-color: rgba(243, 156, 18, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.15);
}

.home-faq .accordion-button::after {
  filter: sepia(1) saturate(3) hue-rotate(345deg);
}

.home-faq .accordion-body {
  color: #334155;
  line-height: 1.65;
}

.tax-calc__example {
  display: grid;
  gap: 0.75rem;
}

.tax-calc__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #f7f8fc;
  border-radius: 10px;
}

.tax-calc__row--total {
  background: rgba(243, 156, 18, 0.12);
  font-size: 1.05rem;
}

.license-summary dt {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.license-summary dd {
  margin-bottom: 0.75rem;
}

.sveden-body h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

@media (max-width: 575.98px) {
  .hero-license-badge {
    width: 100%;
  }

  .hero-license-badge__cta {
    display: none;
  }
}

/* --- License PDF download CTA --- */
.license-download {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  max-width: 40rem;
}

.license-download__btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  text-decoration: none !important;
  color: #1a1a2e !important;
  background: linear-gradient(135deg, #ffe08a 0%, #f39c12 48%, #e67e22 100%);
  border: 2px solid #fff6d0;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(230, 126, 34, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.license-download__btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
  color: #1a1a2e !important;
  box-shadow: 0 16px 34px rgba(230, 126, 34, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.license-download__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(26, 26, 46, 0.12);
  font-size: 1.7rem;
  color: #c0392b;
}

.license-download__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.license-download__title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.license-download__meta {
  font-size: 0.84rem;
  font-weight: 600;
  opacity: 0.88;
}

.license-download__action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #1a1a2e;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(26, 26, 46, 0.25);
}

.license-download__secondary {
  align-self: flex-start;
  font-weight: 700;
  color: #d68910 !important;
  text-decoration: none;
}

.license-download__secondary:hover {
  color: #b9770e !important;
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .license-download__btn {
    flex-wrap: wrap;
  }

  .license-download__action {
    width: 100%;
    justify-content: center;
  }
}

/* --- Hero primary CTA under license --- */
.hero-cta-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 1.15rem auto 1.35rem;
  max-width: min(100%, 34rem);
}

.hero-cta-primary__btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.05rem 1.25rem;
  text-decoration: none !important;
  color: #fff !important;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 42%, #d35400 100%);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(211, 84, 0, 0.45), 0 0 0 4px rgba(243, 156, 18, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-cta-primary__btn:hover {
  transform: translateY(-3px) scale(1.015);
  filter: brightness(1.05);
  color: #fff !important;
  box-shadow: 0 18px 42px rgba(211, 84, 0, 0.55), 0 0 0 4px rgba(255, 209, 102, 0.28);
}

.hero-cta-primary__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.65rem;
}

.hero-cta-primary__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.hero-cta-primary__copy strong {
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.hero-cta-primary__copy span {
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.92;
}

.hero-cta-primary__arrow {
  font-size: 1.85rem;
  flex-shrink: 0;
  opacity: 0.95;
}

.hero-cta-primary__secondary {
  color: #ffd166 !important;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-cta-primary__secondary:hover {
  color: #fff !important;
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .hero-cta-primary__btn {
    padding: 0.95rem 1rem;
  }

  .hero-cta-primary__icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.35rem;
  }
}

/* Expertise & HR Section */
.expertise-visual-section.bg-dark-tech {
  background: linear-gradient(145deg, #0b1220 0%, #152238 55%, #1a2740 100%);
  color: #f1f5f9;
}

.expertise-visual-section .section-heading,
.expertise-visual-section h2.section-heading {
  color: #ffffff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.expertise-visual-section .section-heading::after {
  background: linear-gradient(90deg, var(--tk-orange), #38bdf8);
}

.expertise-visual-section .section-lead {
  color: #cbd5e1 !important;
  margin-left: 0;
  max-width: 36rem;
}

.expertise-visual-section .tech-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expertise-visual-section .tech-feature-list li {
  color: #f1f5f9 !important;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.expertise-visual-section .tech-feature-list i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.expertise-visual-section .bg-glass {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.expertise-visual-section .hr-partner-box {
  background: linear-gradient(145deg, #fff8ec 0%, #ffe8c2 100%);
  border: 2px solid #f39c12;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.expertise-visual-section .hr-partner-box h5 {
  color: #1a1a2e !important;
  font-weight: 800;
}

.expertise-visual-section .hr-partner-box p {
  color: #2c3e50 !important;
}

.expertise-visual-section .hr-partner-box strong {
  color: #c0392b !important;
}

.expertise-visual-section .ide-window {
  background-color: #1e1e1e;
  border: 1px solid #475569;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.expertise-visual-section .ide-header {
  background-color: #2d2d2d;
  border-bottom: 1px solid #111;
}

.expertise-visual-section .mac-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
}

.expertise-visual-section .ide-body {
  line-height: 1.55;
  color: #e5e7eb;
}

.expertise-visual-section .code-line {
  padding: 2px 0;
}

.expertise-visual-section .review-popover {
  background: #fff3d6;
  border: 2px solid #e67e22;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.expertise-visual-section .review-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 20px;
  border-width: 0 7px 7px 7px;
  border-style: solid;
  border-color: transparent transparent #e67e22 transparent;
}

.expertise-visual-section .review-popover::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 21px;
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent #fff3d6 transparent;
}

.expertise-visual-section .review-popover p {
  color: #1a1a2e !important;
}

.expertise-visual-section .review-popover code {
  color: #9a3412;
  background: #ffe0a3;
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

/* === Modern teacher card (article pages) === */
.article-page .article-teacher {
  position: relative;
  display: block;
  overflow: hidden;
  color: #243447;
  background:
    radial-gradient(circle at 90% 0%, rgba(56, 189, 248, 0.14), transparent 22rem),
    radial-gradient(circle at 0% 100%, rgba(249, 115, 22, 0.07), transparent 20rem),
    linear-gradient(160deg, #ffffff 0%, #f1f7fc 100%);
  border: 1px solid #d7e3ef;
  border-radius: 26px;
  box-shadow: 0 22px 46px rgba(15, 35, 63, 0.1);
}

.article-page .article-teacher__body > .article-teacher__media {
  position: relative;
  float: right;
  display: block;
  width: min(42%, 230px);
  margin: 0.15rem 0 0.9rem 1.4rem !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #e7eef6;
  box-shadow: 0 12px 26px rgba(15, 35, 63, 0.14);
}

.article-page .article-teacher__media::before {
  position: absolute;
  inset: -16%;
  content: "";
  background: url("/images/new/gerasimenkosv.png") center 22% / cover no-repeat;
  filter: blur(30px) brightness(1.08) saturate(1.05);
  transform: scale(1.18);
}

.article-page .article-teacher__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 38%, rgba(15, 35, 63, 0.05) 100%);
}

.article-page .article-teacher__photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center 20%;
  transform: none;
  filter: none;
}

.article-page .article-teacher__body {
  display: flow-root;
  gap: 0;
  padding: clamp(1.35rem, 3.2vw, 2.15rem);
  background: transparent;
}

.article-page .article-teacher h2 {
  color: #10233f !important;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem) !important;
  line-height: 1.18 !important;
}

.article-page .article-teacher p,
.article-page .article-teacher li {
  color: #33475c !important;
}

.article-page .article-teacher__eyebrow {
  color: #8a4b00 !important;
  background: #fff3cd;
  border: 1px solid #f2d98c;
}

.article-page .article-teacher__role {
  color: #1f6f8b !important;
}

.article-page .article-teacher__triad span {
  color: #1d4ed8 !important;
  background: #f5f9fd;
  border-color: #cfe0f2;
}

.article-page .article-teacher__facts li {
  color: #33475c !important;
  background: #f3f8fc;
  border: 1px solid #dbe7f2;
  box-shadow: none;
}

.article-page .article-teacher__facts strong {
  color: #0f3460 !important;
}

.article-page .article-teacher__link {
  color: #0f3460 !important;
}

.article-page .article-teacher__link:hover {
  color: #f97316 !important;
}

@media (max-width: 760px) {
  .article-page .article-teacher__body > .article-teacher__media {
    float: none;
    width: 100%;
    margin: 0 0 1rem !important;
    aspect-ratio: 16 / 10;
  }

  .article-page .article-teacher__photo {
    object-position: center 22%;
  }
}

.article-page .article-teacher__badge {
  position: absolute;
  z-index: 2;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.4rem 0.7rem;
  color: #fdba74 !important;
  background: rgba(7, 17, 31, 0.74);
  border: 1px solid rgba(251, 146, 60, 0.35);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.article-page .article-teacher__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: #475569;
  background: #f3f8fc;
  border: 1px solid #dbe7f2;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.3;
}

.article-page .article-teacher__proof strong {
  color: #0f3460;
}

.article-page .article-teacher__stars {
  color: #f59e0b;
  letter-spacing: 0.08em;
}

.article-page .article-teacher__points {
  display: grid;
  gap: 0.42rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.article-page .article-teacher__points li {
  position: relative;
  padding-left: 1.5rem;
  color: #33475c !important;
  font-size: 0.88rem;
  line-height: 1.45;
}

.article-page .article-teacher__points li::before {
  position: absolute;
  left: 0;
  top: -0.05rem;
  content: "✓";
  color: #16a34a;
  font-weight: 900;
}

.article-page .article-teacher__quote {
  margin: 0 !important;
  padding: 0.8rem 0.95rem;
  color: #33475c !important;
  background: #fff7ed;
  border-left: 3px solid #f97316;
  border-radius: 0 0.7rem 0.7rem 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.article-page .article-teacher__quote cite {
  display: block;
  margin-top: 0.4rem;
  color: #64748b;
  font-size: 0.72rem;
  font-style: normal;
}

.article-page .article-teacher__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.article-page .article-teacher__actions .article-teacher__link {
  margin-top: 0;
  color: #0f3460 !important;
  font-size: 0.85rem;
}

.article-page .article-teacher__actions .article-teacher__link:hover {
  color: #f97316 !important;
}

.article-page .article-teacher__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.15rem;
  color: #ffffff !important;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-radius: 0.7rem;
  box-shadow: 0 0.8rem 1.6rem rgba(249, 115, 22, 0.28);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-page .article-teacher__cta:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 1rem 2rem rgba(249, 115, 22, 0.36);
}

.article-page .article-teacher__body > * {
  margin: 0 0 0.7rem !important;
}

.article-page .article-teacher__body > *:last-child {
  margin-bottom: 0 !important;
}

/* === Corporate "how lessons work" block === */
.article-personal-format {
  position: relative;
  overflow: hidden;
  margin: 3rem 0;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  color: #33475c;
  background:
    radial-gradient(circle at 88% 0%, rgba(56, 189, 248, 0.14), transparent 24rem),
    radial-gradient(circle at 0% 100%, rgba(249, 115, 22, 0.07), transparent 22rem),
    linear-gradient(160deg, #ffffff 0%, #eef5fb 100%);
  border: 1px solid #d7e3ef;
  border-radius: 24px;
  box-shadow: 0 20px 44px rgba(15, 35, 63, 0.1);
}

.article-personal-format::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: radial-gradient(circle at 1px 1px, rgba(37, 99, 235, 0.12) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
  mask-image: linear-gradient(180deg, #000, transparent 80%);
  opacity: 0.5;
  pointer-events: none;
}

.article-personal-format > * {
  position: relative;
  z-index: 1;
}

.article-personal-format .article-teacher__eyebrow {
  color: #1d4ed8 !important;
  background: #eaf2fe;
  border: 1px solid #cfe0f2;
}

.article-content .article-personal-format h2,
.article-personal-format h2 {
  margin: 0 0 0.9rem !important;
  color: #10233f !important;
  font-size: clamp(1.5rem, 3vw, 2.1rem) !important;
  letter-spacing: -0.02em;
}

.article-content .article-personal-format p,
.article-personal-format p {
  max-width: 62ch;
  color: #475569 !important;
  font-size: 1.02rem !important;
  line-height: 1.75 !important;
}

.article-format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.article-format-grid div {
  position: relative;
  padding: 1.25rem 1.2rem;
  background: #ffffff;
  border: 1px solid #dbe7f2;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 35, 63, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-format-grid div::before {
  position: absolute;
  top: 0;
  right: 1.2rem;
  left: 1.2rem;
  height: 3px;
  content: "";
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #38bdf8, #2563eb);
}

.article-format-grid div:nth-child(2)::before {
  background: linear-gradient(90deg, #34d399, #0f766e);
}

.article-format-grid div:nth-child(3)::before {
  background: linear-gradient(90deg, #fb923c, #f97316);
}

.article-format-grid div:hover {
  border-color: #93c5fd;
  box-shadow: 0 16px 34px rgba(15, 35, 63, 0.12);
  transform: translateY(-3px);
}

.article-format-grid i {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  color: #1d4ed8;
  background: #eaf2fe;
  border-radius: 0.75rem;
  font-size: 1.15rem;
}

.article-format-grid div:nth-child(2) i {
  color: #0f766e;
  background: #e6f7f1;
}

.article-format-grid div:nth-child(3) i {
  color: #c2410c;
  background: #fff1e6;
}

.article-format-grid strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #10233f !important;
  font-size: 1.02rem;
}

.article-format-grid span {
  display: block;
  color: #475569 !important;
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .article-format-grid {
    grid-template-columns: 1fr;
  }
}

/* === Article typography: как на главной (Manrope + 18px) === */
.article-content,
.article-content p,
.article-content ul,
.article-content ol,
.article-content li,
body:not(.page-home) .main-content .article-content p,
body:not(.page-home) .main-content .article-content li {
  font-family: var(--body-font-family, "Manrope", system-ui, sans-serif) !important;
  font-size: var(--p-font-size, 1.125rem) !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  text-align: left;
}

.article-content p {
  margin-bottom: 1.1rem;
  color: var(--tk-text) !important;
}

.article-content li {
  line-height: 1.7 !important;
}

.article-content strong,
.article-content b {
  font-family: inherit !important;
  font-weight: 700 !important;
}

.article-content h2,
.article-content h3,
body:not(.page-home) .main-content .article-content h2,
body:not(.page-home) .main-content .article-content h3 {
  font-family: var(--body-font-family, "Manrope", system-ui, sans-serif) !important;
}

.article-key-result,
.article-key-result p,
.article-key-result strong {
  font-family: var(--body-font-family, "Manrope", system-ui, sans-serif);
}

.article-key-result p {
  font-size: var(--p-font-size, 1.125rem) !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
}

.article-figure figcaption {
  font-family: var(--body-font-family, "Manrope", system-ui, sans-serif);
}

/* === Оглавление: светлое, без переноса строк === */
.article-toc {
  margin: 2.5rem 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  border: 1px solid #dbe7f2;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(15, 35, 63, 0.06);
}

.article-toc h2 {
  margin: 0 0 1rem !important;
  color: #10233f !important;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem) !important;
}

.article-toc ol {
  display: grid;
  grid-template-columns: 1fr;
  columns: 1;
  gap: 0.5rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  counter-reset: toc;
}

.article-toc li {
  position: relative;
  margin: 0 !important;
  padding: 0.62rem 0.9rem 0.62rem 2.9rem;
  background: #ffffff;
  border: 1px solid #e4edf5;
  border-radius: 12px;
  counter-increment: toc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.article-toc li::before {
  position: absolute;
  top: 50%;
  left: 0.7rem;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  content: counter(toc);
  color: #1d4ed8;
  background: #eaf2fe;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  transform: translateY(-50%);
}

.article-toc li:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 22px rgba(15, 35, 63, 0.08);
  transform: translateY(-2px);
}

.article-toc a {
  display: block;
  color: #1e293b !important;
  font-size: 1.05rem;
  line-height: 1.35;
  text-decoration: none !important;
}

.article-toc a:hover {
  color: #1d4ed8 !important;
}

/* ========== Articles & news: mobile photo + text ========== */
@media (max-width: 767.98px) {
  .article-page,
  .news-article {
    overflow-x: clip;
  }

  .article-page__container.container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .article-page__card,
  .news-article .article-page__card {
    border-radius: 16px;
  }

  .article-page__header,
  .news-article__header {
    padding: 1.15rem 1rem 1rem;
  }

  .article-page__header .section-heading,
  .news-article__title,
  .news-article .article-page__header .section-heading {
    margin-bottom: 0.7rem;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: clamp(1.22rem, 4.2vw, 1.42rem) !important;
    font-weight: 800;
    line-height: 1.28 !important;
    letter-spacing: -0.02em !important;
    word-break: break-word;
    hyphens: auto;
  }

  .article-page__header .section-heading::after,
  .news-article .article-page__header .section-heading::after {
    bottom: -0.35rem;
    width: 2.5rem;
    height: 2.5px;
  }

  .article-page__excerpt {
    margin: 0.85rem 0 1.1rem;
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }

  .article-page__author {
    width: 100%;
    max-width: 100%;
    gap: 0.7rem;
    padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  }

  .article-page__author img {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
  }

  .article-page__author strong {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .article-lead {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1rem !important;
  }

  /* Hero: full image, no 16:9 crop */
  .article-page__hero {
    margin: 0;
    background: #f1f5f9;
  }

  .news-article__hero {
    margin: 0 0.75rem 0.25rem;
    border-radius: 12px;
    background: #f1f5f9;
  }

  .article-page__hero img,
  .news-article__hero img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    max-height: none;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center top;
  }

  .article-page__content,
  .news-article__content {
    padding: 1.15rem 1rem 1.5rem !important;
  }

  /* Inline figures / content images */
  .article-figure {
    margin: 1.1rem 0;
    padding: 0.5rem;
    border-radius: 12px;
  }

  .article-figure--small {
    max-width: 100%;
  }

  .article-figure img,
  .article-content > p > img,
  .article-content > img,
  .article-page__content > p > img,
  .article-page__content > img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    border-radius: 8px;
  }

  .article-teacher img,
  .article-teacher__photo {
    object-fit: cover !important;
  }

  .article-figure figcaption {
    margin-top: 0.55rem;
    font-size: 0.82rem;
    line-height: 1.4;
    padding: 0 0.15rem;
  }

  .article-figure-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin: 1.1rem 0;
  }

  /* Readable body text (override desktop 1.125rem !important) */
  .article-content,
  .article-content p,
  .article-content ul,
  .article-content ol,
  .article-content li,
  body:not(.page-home) .main-content .article-content p,
  body:not(.page-home) .main-content .article-content li {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  .article-content p {
    margin-bottom: 0.9rem;
  }

  .article-content h2,
  .article-content .h2,
  body:not(.page-home) .main-content .article-content h2 {
    font-size: 1.15rem !important;
    font-weight: 700;
    line-height: 1.32 !important;
    letter-spacing: -0.015em;
    margin: 1.35rem 0 0.55rem !important;
    padding-left: 0.7rem;
    border-left: 3px solid var(--tk-orange);
  }

  .article-content h3,
  .article-content .h3,
  body:not(.page-home) .main-content .article-content h3 {
    font-size: 1.05rem !important;
    font-weight: 700;
    line-height: 1.35 !important;
    letter-spacing: -0.01em;
    margin: 1.1rem 0 0.45rem !important;
  }

  .article-content h4 {
    font-size: 1rem !important;
    font-weight: 700;
    color: var(--tk-navy-2) !important;
  }

  .article-content ul,
  .article-content ol {
    padding-left: 1.15rem;
    margin-bottom: 0.95rem;
  }

  .article-content li {
    margin-bottom: 0.35rem;
  }

  .article-content blockquote {
    margin: 1rem 0;
    padding: 0.75rem 0.85rem;
    font-size: 0.98rem !important;
  }

  .article-key-result {
    margin: 1.15rem 0;
    padding: 1rem 1rem 1rem 1.1rem;
  }

  .article-key-result p {
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }

  /* Cards / pills / flow */
  .article-card {
    padding: 0.95rem 1rem;
    border-radius: 12px;
    margin: 0.95rem 0;
  }

  .article-card__title {
    font-size: 1.05rem;
  }

  .article-card__text,
  .article-card p {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }

  .article-pills {
    gap: 0.45rem;
  }

  .article-pill {
    font-size: 0.82rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
  }

  .article-flow {
    gap: 0.55rem;
  }

  .article-flow__item {
    font-size: 0.9rem;
    padding: 0.55rem 0.75rem;
  }

  .article-toc {
    padding: 0.85rem;
    margin: 1rem 0 1.25rem;
  }

  .article-toc__title {
    font-size: 1rem;
    margin-bottom: 0.65rem;
  }

  .article-toc li {
    padding: 0.65rem 0.75rem 0.65rem 2.35rem;
  }

  .article-toc a {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .article-toc li::before {
    left: 0.65rem;
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.72rem;
  }

  .article-code,
  .article-content pre,
  .article-content pre code {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
  }

  .article-code,
  .article-content pre {
    padding: 0.75rem;
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .article-cta {
    padding: 1rem;
    margin: 1.25rem 0;
  }

  .article-cta__title {
    font-size: 1.15rem;
  }

  .article-cta__text {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .article-cta .btn,
  .article-cta__actions .btn,
  .article-cta__actions .article-btn {
    width: 100%;
    justify-content: center;
  }

  .article-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 575.98px) {
  .article-page__header,
  .news-article__header {
    padding: 1rem 0.85rem 0.85rem;
  }

  .article-page__header .section-heading,
  .news-article__title,
  .news-article .article-page__header .section-heading {
    font-size: clamp(1.18rem, 4.6vw, 1.32rem) !important;
    line-height: 1.3 !important;
  }

  .article-page__content,
  .news-article__content {
    padding: 1rem 0.85rem 1.35rem !important;
  }

  .news-article__hero {
    margin-left: 0.6rem;
    margin-right: 0.6rem;
  }

  .article-content,
  .article-content p,
  .article-content ul,
  .article-content ol,
  .article-content li,
  body:not(.page-home) .main-content .article-content p,
  body:not(.page-home) .main-content .article-content li {
    font-size: 0.98rem !important;
  }
}

/* ========== Publications list (articles / news index) ========== */
.pub-list {
  background:
    radial-gradient(circle at 8% 0%, rgba(41, 128, 185, 0.08), transparent 22rem),
    radial-gradient(circle at 96% 8%, rgba(243, 156, 18, 0.07), transparent 18rem),
    #f5f7fb;
}

.pub-list__head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.pub-list__title.section-heading {
  margin-bottom: 0.75rem;
  padding-left: 0;
  padding-right: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.03em !important;
}

.pub-list__title.section-heading::after {
  left: 0;
  bottom: -0.4rem;
  width: 2.75rem;
  height: 3px;
}

.pub-list__lead {
  margin: 0.85rem 0 0;
  color: var(--tk-muted) !important;
  font-family: var(--body-font-family, "Manrope", system-ui, sans-serif);
  font-size: 1.05rem;
  line-height: 1.55;
}

.pub-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.1rem;
  box-shadow: 0 12px 32px rgba(15, 35, 63, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pub-card:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: 0 18px 40px rgba(15, 35, 63, 0.12);
}

.pub-card__media {
  display: block;
  overflow: hidden;
  background: #eef2f7;
  aspect-ratio: 16 / 9;
}

.pub-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.pub-card:hover .pub-card__media img {
  transform: scale(1.03);
}

.pub-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.35rem 1.4rem;
}

.pub-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.pub-card__meta time {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pub-card__title {
  margin: 0 0 0.65rem;
  font-family: var(--body-font-family, "Manrope", system-ui, sans-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.pub-card__title a {
  color: var(--tk-navy) !important;
  text-decoration: none;
}

.pub-card__title a:hover,
.pub-card__title a:focus-visible {
  color: #1d4ed8 !important;
}

.pub-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 1rem;
  color: var(--tk-muted) !important;
  font-family: var(--body-font-family, "Manrope", system-ui, sans-serif);
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.pub-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  color: var(--tk-orange-dark) !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.pub-card__link i {
  transition: transform 0.2s ease;
}

.pub-card:hover .pub-card__link i,
.pub-card__link:hover i {
  transform: translateX(3px);
}

@media (max-width: 767.98px) {
  .pub-list {
    overflow-x: clip;
  }

  .pub-list .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .pub-list__head {
    margin-bottom: 1.15rem;
  }

  .pub-list__title.section-heading {
    font-size: clamp(1.28rem, 5vw, 1.48rem) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
  }

  .pub-list__title.section-heading::after {
    width: 2.35rem;
    height: 2.5px;
    bottom: -0.3rem;
  }

  .pub-list__lead {
    margin-top: 0.7rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .pub-list .row {
    --bs-gutter-y: 1rem;
  }

  .pub-card {
    border-radius: 14px;
  }

  .pub-card:hover {
    transform: none;
  }

  .pub-card:hover .pub-card__media img {
    transform: none;
  }

  /* Photos: less aggressive crop, readable thumbs */
  .pub-card__media {
    aspect-ratio: 4 / 3;
    max-height: 13.5rem;
  }

  .pub-card__media img {
    object-fit: cover;
    object-position: center top;
  }

  .pub-card__body {
    padding: 0.95rem 1rem 1.1rem;
  }

  .pub-card__meta time {
    font-size: 0.7rem;
  }

  .pub-card__title {
    margin-bottom: 0.5rem;
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
    overflow-wrap: break-word;
  }

  .pub-card__excerpt {
    margin-bottom: 0.85rem;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    -webkit-line-clamp: 3;
  }

  .pub-card__link {
    font-size: 0.88rem;
  }
}

@media (max-width: 575.98px) {
  .pub-list__title.section-heading {
    font-size: clamp(1.2rem, 5.2vw, 1.35rem) !important;
  }

  .pub-card__media {
    aspect-ratio: 16 / 10;
    max-height: 11.5rem;
  }

  .pub-card__title {
    font-size: 1rem !important;
  }

  .pub-card__excerpt {
    -webkit-line-clamp: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pub-card,
  .pub-card__media img,
  .pub-card__link i {
    transition: none;
  }

  .pub-card:hover {
    transform: none;
  }

  .pub-card:hover .pub-card__media img {
    transform: none;
  }
}

