/* ========= Base / Variables ========= */
:root{
  --bg: #f9faff;
  --bg-soft: #ffffff;
  --text: #1d1f33;
  --muted: #555a80;
  --brand: #5b7bfa;   /* Ніжний синій */
  --brand-2: #38d3e8; /* Бірюзовий акцент */
  --accent: #f876a6;  /* Рожево-кораловий */
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --glass: rgba(255,255,255,.7);
}

.teens-page{
  color:var(--text);
  background:
    linear-gradient(180deg, #eef5ff 0%, #f9faff 100%);
  font-family: "Montserrat", system-ui, sans-serif;
}

.teens-container{ padding: 0 0 48px; }

/* ========= Hero ========= */
.hero-teens{
background: linear-gradient(135deg, #ffe29f, #ff5542);
    padding: 3rem 2rem;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.hero-teens h1{
  font: 900 clamp(32px, 5vw, 60px)/1.1 "Montserrat", sans-serif;
  margin-bottom: 12px;
  color:#ffffff;;
}
.hero-teens h1 em{
  display:block;
  font-style:normal;
  font-size: clamp(20px, 2.6vw, 30px);
background: linear-gradient(90deg, #ff7d2f, #ff5f00);
  -webkit-background-clip:text;
  color:transparent;
}
.hero-sub{
  color: #000000;
  margin: 10px 0 30px;
}
.hero-actions{
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
}
.hero-glow{
  position:absolute; inset:auto -30% -50% -30%;
  height: 400px;
  background: radial-gradient(closest-side, rgba(91,123,250,.25), transparent 70%),
              radial-gradient(closest-side, rgba(56,211,232,.25), transparent 70%);
  filter: blur(60px);
  pointer-events:none;
}

/* ========= Buttons ========= */
.btn{
  display:inline-block;
  border-radius:14px;
  padding:12px 20px;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.3px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  color:#fff;
background: linear-gradient(90deg, #ff4a25, #ffe214);
  box-shadow: 0 8px 20px rgba(91,123,250,.25);
}
.btn-ghost{
  color:var(--brand);
  border:2px solid var(--brand-2);
  background: #fff;
}

/* ========= Sections ========= */
.section{ padding: 64px 0; text-align:center; }
.section-title{
  font: 900 clamp(26px, 3.4vw, 38px) "Montserrat", sans-serif;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip:text;
  color:transparent;
  margin-bottom: 12px;
}
.section-lead{
  color: #000000;
  margin-bottom: 36px;
  max-width:700px;
  margin-left:auto;
  margin-right:auto;
}

/* ========= Cards ========= */
.cards-3{
  display:grid; gap:20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card{
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(91,123,250,.2);
}
.card-ico{ font-size:30px; margin-bottom:8px; }
.card h3{ color:#1d1f33; margin-bottom:6px; }
.card p{ color:var(--muted); margin:0; }

/* ========= Timeline ========= */
.timeline{ display:grid; gap:24px; text-align:left; max-width:850px; margin:auto; }
.t-item{ position:relative; }
.t-badge{
  position:absolute; left:-14px; top:-10px;
  width:46px; height:46px;
  border-radius:14px;
  display:grid; place-items:center;
background: linear-gradient(135deg, #ff8a00, #ebff00);
  color:#fff;
  font-weight:900;
}
.t-card{
  padding:24px 18px 18px 60px;
  background:#fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.t-card h3{ color:#1d1f33; margin-bottom:10px; }
.t-desc{ color:var(--muted); margin-bottom:10px; }
.t-list li{ margin:6px 0; color:#404469; }

/* ========= Teachers ========= */
.card-glass{
  background:#fdfdfd;
  border:1px solid #e3e8ff;
}

/* ========= CTA ========= */
.cta{

  padding: 80px 20px;
  text-align:center;
  border-top:1px solid #e1e7fa;
}
.cta h2{
  color:#1d1f33;
  font: 900 clamp(24px, 3vw, 36px) "Montserrat", sans-serif;
  margin-bottom:10px;
}
.cta p{
  color:var(--muted);
  margin-bottom:20px;
}
.cta-button{

  color:#fff;
  border-radius:14px;
  padding:12px 22px;
  text-decoration:none;
  font-weight:700;
  box-shadow: 0 8px 20px rgba(91,123,250,.25);
  transition: transform .15s ease;
}
.cta-button:hover{ transform: translateY(-2px); }

/* ========= Animations ========= */
.card, .t-card, .cta{
  animation: fadeUp .5s ease both;
}
@keyframes fadeUp{
  from{ transform: translateY(12px); opacity:0; }
  to{ transform: translateY(0); opacity:1; }
}
p.section-leад {
    color: black;
}