/* =========================================================
   Installment chip (hero + course cards) + Payment section
   Подключается глобально для front-page
   ========================================================= */

/* ========== HERO · installment chip ========== */
.hero__installment {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 200, 87, .45);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .15s;
  width: max-content;
  max-width: 100%;
}
.hero__installment:hover {
  border-color: #ffc857;
  background: linear-gradient(135deg, rgba(255, 200, 87, .18), rgba(255, 200, 87, .06));
  transform: translateY(-1px);
}
.hero__installment-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffc857;
  color: #5a3d00;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(255, 200, 87, .5);
}
.hero__installment-ico svg { width: 16px; height: 16px; }
.hero__installment-head { color: #ffd97a; font-weight: 700; letter-spacing: .02em; }
.hero__installment-sub { color: rgba(255, 255, 255, .7); font-weight: 500; }
.hero__installment-sub::before { content: "·"; margin: 0 6px; color: rgba(255, 255, 255, .4); }
.hero__installment-arrow { color: rgba(255, 255, 255, .6); margin-left: 2px; display: inline-flex; }
.hero__installment-arrow svg { width: 14px; height: 14px; }
.hero__installment:hover .hero__installment-arrow { color: #ffc857; }

/* ========== Benefits · рассрочка card fact ========== */
.benefits-slide__fact--sun {
  background: #ffc857 !important;
  color: #5a3d00 !important;
  box-shadow: 0 0 18px rgba(255, 200, 87, .32) !important;
}
.benefits-slide__text a {
  color: #ffc857;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 200, 87, .5);
  transition: color .2s, border-color .2s;
}
.benefits-slide__text a:hover { color: #ffd97a; border-color: #ffd97a; }

/* ========== Course/Camp · installment chip ========== */
.installment-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  border-radius: 999px;
  background: rgba(255, 200, 87, .12);
  border: 1px solid rgba(255, 200, 87, .45);
  color: #ffd97a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  width: max-content;
  max-width: 100%;
  transition: background .2s, border-color .2s, transform .15s;
  margin: 0 0 14px;
}
.installment-chip:hover {
  background: rgba(255, 200, 87, .22);
  border-color: #ffc857;
  transform: translateY(-1px);
}
.installment-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffc857;
  box-shadow: 0 0 14px rgba(255, 200, 87, .7);
  flex-shrink: 0;
}
.installment-chip__lbl { color: rgba(255, 255, 255, .7); font-weight: 500; }
.installment-chip__lbl::before { content: "·"; margin: 0 4px; color: rgba(255, 255, 255, .35); }
.installment-chip__arrow { color: rgba(255, 255, 255, .55); display: inline-flex; margin-left: 2px; }
.installment-chip__arrow svg { width: 12px; height: 12px; }
.installment-chip:hover .installment-chip__arrow { color: #ffc857; }

/* ========== PAY SECTION (after tariffs) ========== */
.pay {
  position: relative;
  margin: 120px auto 0;
  padding: 56px 40px;
  border-radius: 26px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255, 200, 87, .07) 0%, rgba(255, 200, 87, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .02) 100%),
    #0b3b7a;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 12px 40px rgba(0, 20, 60, .35);
  color: #fff;
  overflow: hidden;
}
@media (max-width: 680px) { .pay { margin: 80px auto 0; padding: 40px 22px; } }

.pay__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #4dffb4;
  margin-bottom: 12px;
}
.pay__title {
  font-weight: 700;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  color: #fff;
}
.pay__sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .75);
  max-width: 640px;
  margin: 0 0 36px;
}

.pay__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .pay__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .pay__grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

.pay__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background .2s, border-color .2s, transform .15s;
  text-decoration: none;
  color: inherit;
}
.pay__card:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(77, 255, 180, .3);
  transform: translateY(-3px);
}

.pay__ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(77, 255, 180, .12);
  color: #4dffb4;
  flex-shrink: 0;
}
.pay__ico svg { width: 22px; height: 22px; }
.pay__card h4 { font-weight: 700; font-size: 15px; color: #fff; margin: 0; line-height: 1.25; }
.pay__card p { font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .7); margin: 0; flex: 1; }

.pay__card--highlight {
  background: linear-gradient(160deg, rgba(255, 200, 87, .18), rgba(255, 200, 87, .04));
  border-color: rgba(255, 200, 87, .45);
}
.pay__card--highlight .pay__ico { background: rgba(255, 200, 87, .2); color: #ffc857; }
.pay__card--highlight::after {
  content: "Выгодно";
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffc857;
  color: #5a3d00;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}

.pay__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #ffc857;
  margin-top: 2px;
  transition: gap .2s ease;
}
.pay__link:hover { gap: 10px; }
.pay__link svg { width: 12px; height: 12px; }

.pay__legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, .12);
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .5);
}
.pay__legal a {
  color: rgba(255, 255, 255, .75);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .3);
}
.pay__legal a:hover {
  color: #ffc857;
  text-decoration-color: #ffc857;
}

@media (prefers-reduced-motion: reduce) {
  .hero__installment,
  .installment-chip,
  .pay__card { transition: none !important; }
}
