/* ============================================================
   ABOUT.CSS — стили страницы «О себе»
   Подключается после style.css и mobile.css
   ============================================================ */


/* ============================================================
   NAVBAR — активная ссылка (текущая страница) неактивна
   ============================================================ */
.navbar__link--active {
  color: #199812 !important;
  pointer-events: none;
  cursor: default;
  opacity: 0.65;
}
.navbar__link--active:hover {
  color: #199812 !important;

}


/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 28px;
}
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }



/* ============================================================
   ABOUT HERO
   ============================================================ */
.about-hero {
  padding: 110px 0 72px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.about-hero__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
}

.about-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

/* Бегущая белая полоска — как на главной */
.about-hero__badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.75) 50%,
    rgba(255,255,255,0) 70%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: badge-shine 3.5s ease-in-out infinite;
}

.about-hero__badge-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #43C97E;
  flex-shrink: 0;
  animation: dot-breath 1.8s ease-in-out infinite;
}

.about-hero__title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 20px;
  min-height: 2.5em; /* резервируем место чтобы не прыгал layout */
}

.about-hero__title em {
  font-style: italic;
  color: var(--accent);
}

/* ── Строки до начала анимации невидимы ── */
.about-hero__title .typewriter-line {
  opacity: 0;
  visibility: hidden;
}
/* После старта — видимы (JS управляет через data-typed) */
.about-hero__title .typewriter-line[data-typed] {
  opacity: 1;
  visibility: visible;
}

/* Курсор-мигалка */
.typewriter-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  animation: twBlink 0.75s step-end infinite;
  margin-left: 2px;
  opacity: 0; /* скрыт пока JS не запустится */
}
.typewriter-cursor.active {
  opacity: 1;
}
/* Курсор исчезает после завершения печати */
.typewriter-cursor.done {
  animation: twFadeOut 0.4s ease 1.5s forwards;
}
@keyframes twBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes twFadeOut {
  to { opacity: 0; }
}

/* Лид-параграф появляется после заголовка */
.about-hero__lead {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.about-hero__lead.lead-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Статистика появляется после лида */
.about-hero__stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
.about-hero__stats.stats-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Кнопки появляются после статистики */
.about-hero__buttons {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}
.about-hero__buttons.buttons-visible {
  opacity: 1;
  transform: translateY(0);
}

.about-hero__stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.about-stat {
  display: flex;
  flex-direction: column;
}

.about-stat__num {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.about-stat__label {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

/* Фото справа */
.about-hero__photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-hero__photo {
  width: 100%;
  max-width: 290px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--section-bg);
}

.about-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Карточка-бейдж поверх фото */
.about-hero .about-photo-badge {
  position: absolute;
  bottom: 24px;
  left: -16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  padding: 10px 18px 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  border: 1px solid rgba(200,150,90,0.2);
  animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.about-photo-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a7c59;
  flex-shrink: 0;
  position: relative;
}

.about-photo-badge__dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(74,124,89,0.25);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.6); opacity: 0; }
}

a.about-photo-badge {
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

a.about-photo-badge:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  transform: translateY(-7px);
  animation-play-state: paused;
}

/* Кнопки hero */
.about-hero .about-hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ── Кнопка Telegram ── */
@keyframes tgPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(200,150,90,0.38); }
  50%       { box-shadow: 0 6px 32px rgba(200,150,90,0.65); }
}

.about-hero .about-hero__buttons .btn.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  padding: 15px 30px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  background: var(--accent) !important;
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 6px 24px rgba(200,150,90,0.38) !important;
  animation: btnSlideUp 0.5s ease 0.3s both, tgPulse 2.8s ease-in-out 0.9s infinite !important;
  transition: transform 0.22s ease, background 0.22s ease !important;
}

.about-hero .about-hero__buttons .btn.btn-primary:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(200,150,90,0.55) !important;
  background: var(--accent-dark) !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #fff !important;
}

/* ── Кнопка «Мои услуги» — бегущая пунктирная рамка ── */
.about-hero .about-hero__buttons .btn.btn-secondary {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 15px 30px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--text) !important;
  border: none !important;
  box-shadow: none !important;
  transition: color 0.25s ease, transform 0.25s ease !important;
  animation: btnSlideUp 0.5s ease both;
  animation-delay: 0.45s;
  width: auto !important;
}

/* SVG-рамка с анимацией обводки */
.about-hero .about-hero__buttons .btn.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(90deg, var(--accent), transparent, var(--accent), transparent);
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderRun 5s linear infinite;
}

@keyframes borderRun {
  0%   { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

.about-hero .about-hero__buttons .btn.btn-secondary .arrow {
  display: inline-block;
  animation: arrowBounce 1.8s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(5px); }
}

.about-hero .about-hero__buttons .btn.btn-secondary:hover {
  color: var(--accent) !important;
  transform: translateY(-3px) !important;
}

.about-hero .about-hero__buttons .btn.btn-secondary:hover .arrow {
  animation: none;
  transform: translateX(5px);
}

/* Анимация появления кнопок снизу */
@keyframes btnSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   ABOUT SECTION (общий)
   ============================================================ */
.about-section {
  padding: 80px 0;
}

.about-section--alt {
  background: var(--section-bg);
}


/* ============================================================
   ИСТОРИЯ / БИОГРАФИЯ
   ============================================================ */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-story__text h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.about-story__text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-story__text p:last-child { margin-bottom: 0; }

/* Таймлайн */
.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.about-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 28px;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item__dot {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  z-index: 1;
}

.timeline-item__year {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.timeline-item__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-item__desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}


/* ============================================================
   НАВЫКИ — ФЛИП-КАРТОЧКИ с пульсирующим свечением рамок
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

/* ── Обёртка с perspective для 3D ── */
.flip-card {
  height: 200px;
  perspective: 1000px;
  cursor: pointer;
}

/* ── Внутренняя часть — переворачивается ── */
.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(.4,0,.2,1);
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

/* ── Общее для обеих сторон ── */
.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 22px;
}

/* ════════════════════════════
   ЛИЦЕВАЯ СТОРОНА
   + пульсирующее свечение рамки
════════════════════════════ */
.flip-front {
  background: var(--white);
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

/* Уникальное свечение для каждой карточки */
.flip-card:nth-child(1) .flip-front { animation: cardGlowBlue   3.5s ease-in-out infinite; }
.flip-card:nth-child(2) .flip-front { animation: cardGlowCyan   3.5s ease-in-out 0.58s infinite; }
.flip-card:nth-child(3) .flip-front { animation: cardGlowOrange 3.5s ease-in-out 1.16s infinite; }
.flip-card:nth-child(4) .flip-front { animation: cardGlowGreen  3.5s ease-in-out 1.74s infinite; }
.flip-card:nth-child(5) .flip-front { animation: cardGlowPurple 3.5s ease-in-out 2.32s infinite; }
.flip-card:nth-child(6) .flip-front { animation: cardGlowGold   3.5s ease-in-out 2.90s infinite; }

@keyframes cardGlowBlue {
  0%,100% { box-shadow: 0 4px 18px rgba(0,0,0,0.06); border-color: var(--border); }
  50%      { box-shadow: 0 4px 24px rgba(74,144,226,0.18), 0 0 18px 3px rgba(74,144,226,0.15); border-color: rgba(74,144,226,0.5); }
}
@keyframes cardGlowCyan {
  0%,100% { box-shadow: 0 4px 18px rgba(0,0,0,0.06); border-color: var(--border); }
  50%      { box-shadow: 0 4px 24px rgba(97,218,251,0.18), 0 0 18px 3px rgba(97,218,251,0.16); border-color: rgba(97,218,251,0.5); }
}
@keyframes cardGlowOrange {
  0%,100% { box-shadow: 0 4px 18px rgba(0,0,0,0.06); border-color: var(--border); }
  50%      { box-shadow: 0 4px 24px rgba(255,140,66,0.2), 0 0 18px 3px rgba(255,140,66,0.17); border-color: rgba(255,140,66,0.5); }
}
@keyframes cardGlowGreen {
  0%,100% { box-shadow: 0 4px 18px rgba(0,0,0,0.06); border-color: var(--border); }
  50%      { box-shadow: 0 4px 24px rgba(67,201,126,0.18), 0 0 18px 3px rgba(67,201,126,0.16); border-color: rgba(67,201,126,0.5); }
}
@keyframes cardGlowPurple {
  0%,100% { box-shadow: 0 4px 18px rgba(0,0,0,0.06); border-color: var(--border); }
  50%      { box-shadow: 0 4px 24px rgba(180,79,232,0.18), 0 0 18px 3px rgba(180,79,232,0.16); border-color: rgba(180,79,232,0.5); }
}
@keyframes cardGlowGold {
  0%,100% { box-shadow: 0 4px 18px rgba(0,0,0,0.06); border-color: var(--border); }
  50%      { box-shadow: 0 4px 24px rgba(200,150,80,0.22), 0 0 18px 3px rgba(200,150,80,0.2); border-color: rgba(200,150,80,0.55); }
}

/* Цветная полоска сверху */
.flip-front::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  transform: scaleX(0.3);
  opacity: 0.45;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.flip-card:nth-child(1) .flip-front::before { background: linear-gradient(90deg,#4A90E2,#6C63FF); }
.flip-card:nth-child(2) .flip-front::before { background: linear-gradient(90deg,#61DAFB,#21B8D4); }
.flip-card:nth-child(3) .flip-front::before { background: linear-gradient(90deg,#FF8C42,#E84C4C); }
.flip-card:nth-child(4) .flip-front::before { background: linear-gradient(90deg,#43C97E,#2563C4); }
.flip-card:nth-child(5) .flip-front::before { background: linear-gradient(90deg,#B44FE8,#7B5EA7); }
.flip-card:nth-child(6) .flip-front::before { background: linear-gradient(90deg,#C89650,#9A6E30); }

.flip-card:hover .flip-front::before { transform: scaleX(1); opacity: 1; }

/* Иконка */
.flip-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--bg, #faf8f4);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(.34,1.4,.64,1);
}
.flip-card:hover .flip-icon { transform: scale(1.1) rotate(-5deg); }
.flip-icon svg { display: block; }

.flip-title {
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text); margin-bottom: 6px;
}

.flip-hint {
  font-size: 11px; color: var(--text-light); opacity: 0.55;
  transition: opacity 0.3s;
}
.flip-card:hover .flip-hint { opacity: 0; }

/* ════════════════════════════
   ОБРАТНАЯ СТОРОНА
════════════════════════════ */
.flip-back {
  background: var(--back, linear-gradient(135deg,#4A90E2,#6C63FF));
  transform: rotateY(180deg);
  align-items: center;
  text-align: center;
  gap: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  overflow: hidden;
}

.flip-back::before {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  top: -30px; right: -30px;
  pointer-events: none;
}
.flip-back::after {
  content: '';
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  bottom: -20px; left: -20px;
  pointer-events: none;
}

.flip-back-title {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.13em;
  color: rgba(255,255,255,0.95);
  position: relative; z-index: 1;
}

.flip-back-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center;
  position: relative; z-index: 1;
}

.flip-back-tags span {
  font-size: 11.5px; font-weight: 600;
  padding: 5px 12px; border-radius: 20px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff; white-space: nowrap;
  backdrop-filter: blur(4px);
  transition: background 0.2s, transform 0.2s;
}
.flip-back-tags span:hover {
  background: rgba(255,255,255,0.32);
  transform: translateY(-2px);
}

/* Появление карточек */
@keyframes flipCardIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.flip-card { animation: flipCardIn 0.5s ease both; }
.flip-card:nth-child(1) { animation-delay: 0.05s; }
.flip-card:nth-child(2) { animation-delay: 0.13s; }
.flip-card:nth-child(3) { animation-delay: 0.21s; }
.flip-card:nth-child(4) { animation-delay: 0.29s; }
.flip-card:nth-child(5) { animation-delay: 0.37s; }
.flip-card:nth-child(6) { animation-delay: 0.45s; }




/* ============================================================
   ПРИНЦИПЫ РАБОТЫ — Вариант «Акцент-полоса»
   ============================================================ */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.principle-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 28px 24px;
  border-radius: 16px;
  background: #faf8f4;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.38s ease, box-shadow 0.38s ease, background 0.38s ease, border-color 0.38s ease;
}

/* ── Цветная полоска слева — уникальная для каждой карточки ── */
.principle-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: var(--pstripe, var(--accent));
  animation: pcStripePulse 2.6s ease-in-out infinite;
  transition: width 0.4s cubic-bezier(.34,1.4,.64,1), opacity 0.3s;
}

.principle-card:nth-child(1)::before { --pstripe: #4A90E2; animation-delay: 0s; }
.principle-card:nth-child(2)::before { --pstripe: #43C97E; animation-delay: 0.65s; }
.principle-card:nth-child(3)::before { --pstripe: #FF8C42; animation-delay: 1.30s; }
.principle-card:nth-child(4)::before { --pstripe: #B44FE8; animation-delay: 1.95s; }

@keyframes pcStripePulse {
  0%, 100% { transform: scaleY(0.75); opacity: 0.5; }
  50%       { transform: scaleY(1);    opacity: 1; }
}

/* ── Hover: сдвиг вправо, полоска утолщается, фон светлеет ── */
.principle-card:hover {
  transform: translateX(7px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.09), -4px 0 16px rgba(0,0,0,0.04);
  background: var(--white);
  border-color: rgba(200,150,80,0.25);
}
.principle-card:hover::before {
  width: 6px;
  animation-play-state: paused;
  transform: scaleY(1);
  opacity: 1;
}

/* ── Бокс с цифрой ── */
.principle-card__num-box {
  flex-shrink: 0;
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--nbg, rgba(200,150,80,0.1));
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s ease;
}
.principle-card:nth-child(1) .principle-card__num-box { --nbg: rgba(74,144,226,0.10); }
.principle-card:nth-child(2) .principle-card__num-box { --nbg: rgba(67,201,126,0.10); }
.principle-card:nth-child(3) .principle-card__num-box { --nbg: rgba(255,140,66,0.10); }
.principle-card:nth-child(4) .principle-card__num-box { --nbg: rgba(180,79,232,0.10); }

.principle-card:hover .principle-card__num-box {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* ── Цифра — покачивается из стороны в сторону ── */
.principle-card__num {
  font-family: 'Lora', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ncol, var(--accent));
  animation: pcNumSway 3.2s ease-in-out infinite;
  display: inline-block;
}

.principle-card:nth-child(1) .principle-card__num { --ncol: #4A90E2; animation-delay: 0s; }
.principle-card:nth-child(2) .principle-card__num { --ncol: #43C97E; animation-delay: 0.8s; }
.principle-card:nth-child(3) .principle-card__num { --ncol: #FF8C42; animation-delay: 1.6s; }
.principle-card:nth-child(4) .principle-card__num { --ncol: #B44FE8; animation-delay: 2.4s; }

@keyframes pcNumSway {
  0%   { transform: rotate(-6deg); }
  25%  { transform: rotate(5deg); }
  50%  { transform: rotate(-4deg); }
  75%  { transform: rotate(6deg); }
  100% { transform: rotate(-6deg); }
}

.principle-card:hover .principle-card__num {
  animation-play-state: paused;
}

/* ── Тело карточки ── */
.principle-card__body { flex: 1; min-width: 0; }

.principle-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 9px;
  transition: color 0.28s ease;
}
.principle-card:hover .principle-card__title { color: var(--accent-dark); }

.principle-card__text {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.78;
}


/* ============================================================
   СЕРТИФИКАТЫ / ДОСТИЖЕНИЯ (опционально)
   ============================================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.cert-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.cert-card__icon { font-size: 32px; margin-bottom: 10px; display: block; }
.cert-card__name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cert-card__year { font-size: 12px; color: var(--text-light); opacity: 0.7; }


/* ============================================================
   SCROLL REVEAL (общий для карточек страницы)
   ============================================================ */
/* ============================================================
   TIMELINE v4 — Двойное кольцо + SVG иконки
   ============================================================ */

/* Переопределяем старую линию таймлайна */
.about-timeline::before {
  left: 27px;
  top: 28px;
  bottom: 28px;
  background: linear-gradient(to bottom, var(--border) 0%, var(--accent) 100%);
  opacity: 0.5;
}

/* Старый dot скрываем — используем новую структуру */
.timeline-item__dot { display: none; }

/* Сдвиг пункта при hover */
.timeline-item {
  transition: transform 0.25s ease;
}
.timeline-item:hover { transform: translateX(4px); }

/* ── Обёртка двойного кольца ── */
.tl-ring-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.8px solid var(--border);
  transition: border-color 0.35s, transform 0.5s cubic-bezier(.34,1.2,.64,1);
}

.tl-inner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

/* Hover */
.timeline-item:hover .tl-ring {
  border-color: var(--accent);
  transform: scale(1.2) rotate(60deg);
}
.timeline-item:hover .tl-inner {
  border-color: var(--accent);
  background: #fffbf4;
  box-shadow: 0 0 0 3px rgba(200,150,80,0.1);
}

/* Анимация иконки */
.tl-inner svg {
  display: block;
  transition: transform 0.45s cubic-bezier(.34,1.56,.64,1);
  animation: tlIconFloat 3.2s ease-in-out infinite;
}
.timeline-item:nth-child(2) .tl-inner svg { animation-delay: 0.64s; }
.timeline-item:nth-child(3) .tl-inner svg { animation-delay: 1.28s; }
.timeline-item:nth-child(4) .tl-inner svg { animation-delay: 1.92s; }
.timeline-item:nth-child(5) .tl-inner svg { animation-delay: 2.56s; }

.timeline-item:hover .tl-inner svg {
  animation: none;
  transform: scale(1.22);
}

@keyframes tlIconFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-2px) scale(1.05); }
}

/* ── Текущий пункт (Сейчас) ── */
.timeline-item--current .tl-ring {
  border: 2px dashed var(--accent);
  animation: tlRingRotate 7s linear infinite;
}
.timeline-item--current .tl-inner {
  background: var(--accent-light);
  border-color: var(--accent);
}

@keyframes tlRingRotate {
  to { transform: rotate(360deg); }
}

/* ── Бейдж «Сейчас» ── */
.tl-now-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 3px;
}

.tl-now-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #43C97E;
  flex-shrink: 0;
  position: relative;
}

.tl-now-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(67,201,126,0.3);
  animation: tlNowPulse 1.8s ease-in-out infinite;
}

@keyframes tlNowPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.8); opacity: 0; }
}

.about-reveal.will-animate {
  opacity: 0;
  transform: translateY(20px);
}

.about-reveal.will-animate.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SCROLL REVEAL (общий для карточек страницы)
   ============================================================ */
.about-reveal {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-reveal.will-animate {
  opacity: 0;
  transform: translateY(20px);
}

.about-reveal.will-animate.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   INLINE STYLES — вынесены из HTML
   ============================================================ */

/* SVG иконка в кнопке Telegram */
.tg-btn-icon {
  flex-shrink: 0;
}

/* Flip-card — задние стороны (градиенты) */
.flip-back--1 { --back: linear-gradient(135deg, #4A90E2, #6C63FF); }
.flip-back--2 { --back: linear-gradient(135deg, #21B8D4, #4A90E2); }
.flip-back--3 { --back: linear-gradient(135deg, #FF8C42, #E84C4C); }
.flip-back--4 { --back: linear-gradient(135deg, #43C97E, #2563C4); }
.flip-back--5 { --back: linear-gradient(135deg, #B44FE8, #7B5EA7); }
.flip-back--6 { --back: linear-gradient(135deg, #C89650, #9A6E30); }

/* Кнопка отправки формы */
.contact-form__submit {
  justify-content: center;
}

/* Кнопка Telegram в CTA */
.cta-tg-btn {
  margin-top: 8px;
}

/* Текущий пункт меню в футере */
.footer__link--current {
  color: #199812;
  cursor: default;
  pointer-events: none;
  font-size: 14px;

}

/* Полоска загруженности 60% */
.footer__busy-fill--60 {
  width: 60%;
}
