/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter Tight', sans-serif;
  background: linear-gradient(145deg, #c6d3e0 0%, #d0dce8 40%, #c9d6e4 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 24px;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
.page {
  width: 100%;
  max-width: 1300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.layout {
  display: flex;
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

/* ============================================================
   CONTENT CARD (LEFT)
   ============================================================ */
.card {
  background: #ffffff;
  border-radius: 28px;
  padding: 36px 40px 40px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  min-width: 0;
}

/* --- Header row --- */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 46px;
}

.avatar-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
}

.author-name {
  font-size: 16px;
  font-weight: 300;
  color: #2C2C2C;
  white-space: nowrap;
}

.skill-pills {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ============================================================
   PILLS
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 100px;
  font-family: 'Inter Tight', sans-serif;
  white-space: nowrap;
}

/* Skill pills — plain grey outline */
.pill--skill {
  font-size: 16px;
  font-weight: 300;
  color: #2C2C2C;
  border: 1px solid #2C2C2C;
  padding: 10px 18px;
  background: transparent;
}

/* Platform pills — gradient border */
.pill--platform {
  font-size: 38px;
  font-weight: 400;
  padding: 9px 32px;
  background: transparent;
  border: 1.5px solid #AAC5E7;      /* ← сплошная обводка */
  color: transparent;                /* ← скрываем обычный цвет */
  background: linear-gradient(135deg, #AAC5E7 0%, #D2F6FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
}



/* ============================================================
   CARD BODY
   ============================================================ */
.card-body {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size:clamp(32px, 4.5vw, 48px);
  font-weight: 400;
  color: #111111;
  line-height: 1.1;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}

.platform-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 400;
  color: #111111;
  line-height: 1.15;
  letter-spacing: -0.2px;
  margin-bottom: 46px;
}

.lead-text {
  font-size: 20px;
  font-weight: 300;
  color: #2C2C2C;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 100px;
  padding: 12px 12px 12px 38px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 20px;
  font-weight: 300;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

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

/* Outlined (Email) */
.btn--outline {
  background: #fff;
  border: 1.5px solid #ccc;
  color: #2C2C2C;
}

/* Dark (Telegram) */
.btn--dark {
  background: #2C2C2C;
  border: 1.5px solid #2C2C2C;
  color: #FFFFFF;
}

/* Icon circles */
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Email icon: dark circle, white icon */
.btn-icon--dark {
  background: #2C2C2C;
  color: #fff;
}

/* Telegram icon: WHITE circle, dark icon */
.btn-icon--white {
  background: #ffffff;
  color: #2C2C2C;
}

/* ============================================================
   ANIMATION PANEL (RIGHT) — spotlight reveal
   ============================================================ */
.anim-panel {
  background: #2c2c2e;
  border-radius: 28px;
  flex: 0 0 41%;
  overflow: hidden;
  position: relative;
  min-height: 480px;
}

/* The image layer — revealed only inside the moving circle */
.anim-image {
  position: absolute;
  inset: 0;
  background: url('assets/yoga-site.png') center top / cover no-repeat;
  clip-path: circle(130px at 38% 42%);
  animation: spotlight-move 14s ease-in-out infinite;
  will-change: clip-path;
}

@keyframes spotlight-move {
  0% {
    clip-path: circle(130px at 38% 42%);
  }

  14% {
    clip-path: circle(130px at 68% 24%);
  }

  28% {
    clip-path: circle(130px at 78% 62%);
  }

  42% {
    clip-path: circle(130px at 52% 80%);
  }

  57% {
    clip-path: circle(130px at 22% 68%);
  }

  71% {
    clip-path: circle(130px at 18% 30%);
  }

  85% {
    clip-path: circle(130px at 58% 48%);
  }

  100% {
    clip-path: circle(130px at 38% 42%);
  }
}

/* ============================================================
   FOOTER NOTE
   ============================================================ */
.footer-note {
  text-align: left;
  font-size: 13px;
  color: rgba(80, 90, 110, 0.65);
  font-weight: 400;
  padding-left: 20px;
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  body {
    padding: 20px 16px 24px;
    align-items: flex-start;
  }

  .page {
    gap: 16px;
  }

  .layout {
    flex-direction: column;
    gap: 0;
  }

  /* Hide animation panel on mobile */
  .anim-panel {
    display: none;
  }

  .card {
    border-radius: 24px;
    padding: 28px 24px 32px;
  }

  .card-header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    text-align: center;
  }

  .skill-pills {
    justify-content: center;
    gap: 10px;
  }

  /* --- Шаг 3: аватар и имя чуть меньше на мобильных --- */
  .avatar {
    width: 28px;           /* было 40px */
    height: 28px;
  }

.author-name {
  font-size: 14px;       /* было 16px */
}

  .card-body {
    align-items: center;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(32px, 9vw, 46px);
    margin-bottom: 14px;
  }

  .platform-pills {
    justify-content: center;
    margin-bottom: 16px;
  }

  .pill--platform {
    font-size: 24px;
    padding: 7px 18px;
  }

  /* --- Шаг 2: уменьшаем скилл-пиллы на мобильных --- */
  .pill--skill {
    font-size: 12px;
    padding: 6px 12px;
  }

  .hero-subtitle {
    font-size: clamp(32px, 9vw, 46px);
    margin-bottom: 14px;
  }

  .lead-text {
    max-width: 280px;
    margin-bottom: 24px;
  }

  .buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    align-items: center;
  }

  .btn {
    justify-content: space-between;
    padding: 10px 10px 10px 22px;
    font-size: 16px;
  }

  .btn-label {
    font-size: 16px;       /* явно задаём, чтобы не каскадировал 20px */
  }

  .btn-icon {
    width: 36px;           /* было 46px */
    height: 36px;
  }

  /* Telegram on top, Email below (as in Figma mobile) */
  .btn--outline {
    order: 2;
  }

  .btn--dark {
    order: 1;
  }

  .footer-note {
    font-size: 12px;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  /* --- Шаг 5: lead-text тоже уменьшаем на очень узких экранах --- */
  .lead-text {
    font-size: 16px;       /* было 20px */
  }

  .pill--platform {
    font-size: 24px;
    padding: 6px 19px;
  }
}