/* RMS kartochkalari: moviy-oq sirtlar, yorug‘ ramka va oltin chiziqlar. */
:root {
  --card-blue: #06367d;
  --card-gold: #edc269;
  --card-line: #bad6f5;
  --card-shadow: 0 15px 34px rgba(20, 70, 139, .14), 0 3px 10px rgba(28, 101, 184, .09);
  --card-dark: radial-gradient(ellipse at 17% 0%, rgba(33, 165, 245, .75), transparent 38%),
    radial-gradient(ellipse at 96% 100%, rgba(11, 111, 217, .8), transparent 48%),
    linear-gradient(132deg, #073c85 0%, #03285f 52%, #031b48 100%);
  --card-light: radial-gradient(ellipse at 92% 0%, rgba(200, 228, 255, .7), transparent 45%),
    linear-gradient(145deg, #fff 12%, #f2f8ff 64%, #e5f1ff 100%);
}

.story-card, .story-quote, .panel, .result-card, .why-card, .step, .course, .graduate-empty, .toc a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--card-line);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), var(--card-shadow);
}
.story-card, .panel:not(.blue), .result-card, .why-card, .step, .course, .graduate-empty, .toc a {
  background: var(--card-light);
}
/* Kontent bezaklardan yuqorida va faol bo‘lib qoladi. */
.story-card > *, .story-quote > *, .panel > *, .result-card > *, .why-card > *,
.step > *, .course > *, .graduate-empty > *, .toc a > * { position: relative; z-index: 1; }
.story-card::before, .panel::before, .result-card::before, .why-card::before,
.step::before, .course::before, .graduate-empty::before, .toc a::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: inherit;
}
.story-card::after, .panel::after, .result-card::after, .why-card::after,
.step::after, .course::after, .graduate-empty::after, .toc a::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: auto;
  right: 0;
  bottom: -10px;
  width: 46%;
  height: 28px;
  border-radius: 100% 0 0 0;
  border-top: 2px solid #e8ba63;
  background: linear-gradient(165deg, #dceeff 0%, #77bafa 30%, #0f5fb3 75%, #082d71 100%);
  box-shadow: 0 -3px 10px rgba(22, 121, 220, .1);
  opacity: .8;
}
.story-card, .why-card, .step, .graduate-empty { padding-bottom: 38px; }
.story-card > *:last-child, .why-card > *:last-child, .step > *:last-child { margin-bottom: 0; }
.about-audience { position: sticky; }

/* To‘q va och kartochkalar namuna kabi navbatlashadi. */
.result-card:nth-child(1), .result-card:nth-child(4), .why-card:nth-child(even),
.step:nth-child(2), .schedule .panel:nth-child(1), .schedule .panel:nth-child(4),
#talablar .panel:nth-child(2), .panel.blue,
#maqsad .story-step:nth-of-type(2) .story-card {
  color: #fff;
  background: var(--card-dark);
  border-color: #67c9ff;
  box-shadow: inset 0 1px 2px rgba(222, 247, 255, .95), inset 0 0 20px rgba(27, 132, 228, .2),
    0 15px 35px rgba(4, 63, 132, .24), 0 0 15px rgba(48, 163, 241, .2);
}
.result-card:nth-child(1)::before, .result-card:nth-child(4)::before,
.why-card:nth-child(even)::before, .step:nth-child(2)::before,
.schedule .panel:nth-child(1)::before, .schedule .panel:nth-child(4)::before,
#talablar .panel:nth-child(2)::before, .panel.blue::before,
#maqsad .story-step:nth-of-type(2) .story-card::before { border-color: rgba(161, 230, 255, .36); }
.result-card:nth-child(1)::after, .result-card:nth-child(4)::after,
.why-card:nth-child(even)::after, .step:nth-child(2)::after,
.schedule .panel:nth-child(1)::after, .schedule .panel:nth-child(4)::after,
#talablar .panel:nth-child(2)::after, .panel.blue::after,
#maqsad .story-step:nth-of-type(2) .story-card::after {
  background: linear-gradient(160deg, #fff3c4 0%, #e4b34e 15%, #95d7ff 20%, #0a5eb8 45%, #09285f 100%);
  border-top-color: #fff1b6;
  opacity: .95;
}
.why-card:nth-child(even) h3, .step:nth-child(2) h3, #talablar .panel:nth-child(2) h3,
.panel.blue h2, .panel.blue h3, #maqsad .story-step:nth-of-type(2) .story-card h3 { color: #fff; }
.why-card:nth-child(even) p, .step:nth-child(2) p, #talablar .panel:nth-child(2) p,
.panel.blue p, #maqsad .story-step:nth-of-type(2) .story-card p { color: #e1efff; }
#maqsad .story-step:nth-of-type(2) .story-label, .panel.blue .eyebrow,
#talablar .panel:nth-child(2) .eyebrow { color: #f5d991; }
#maqsad .story-step:not(:nth-of-type(2)) .story-card {
  background: var(--card-light);
  border-color: var(--card-line);
}
.story-quote {
  border-color: #58bff5;
  background: var(--card-dark);
  box-shadow: inset 0 1px 0 #c5efff, var(--card-shadow);
}

/* Natijalar — keng ikonka, aniq raqam va yengil ajratuvchi. */
.results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.result-card {
  min-height: 190px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  justify-content: initial;
  gap: 24px;
  padding: 28px 28px 32px;
}
.result-card > div { border-left: 1px solid rgba(30, 92, 159, .3); padding-left: 22px; }
.result-card:nth-child(1) > div, .result-card:nth-child(4) > div { border-color: rgba(201, 229, 255, .4); }
.result-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: radial-gradient(circle at 35% 25%, #fff 0%, #dfedff 43%, #88bff0 100%);
  box-shadow: inset 0 2px 5px #fff, 0 8px 0 -4px #d8a848, 0 12px 20px rgba(0, 39, 97, .25);
}
.result-icon svg { width: 72px; height: 72px; filter: drop-shadow(0 3px 2px rgba(20, 66, 118, .18)); }
.result-number { margin: 0 0 8px; color: #073778; font-size: clamp(32px, 3.3vw, 48px); line-height: 1; letter-spacing: -.045em; }
.result-label { color: #254c7f; font-size: 15px; line-height: 1.45; font-weight: 650; max-width: 270px; }
.result-card:nth-child(1) .result-number, .result-card:nth-child(4) .result-number { color: #ffe2a0; text-shadow: 0 2px 0 #a57529, 0 4px 14px rgba(255, 192, 80, .25); }
.result-card:nth-child(1) .result-label, .result-card:nth-child(4) .result-label { color: #f5f9ff; }

.why-card { min-height: 222px; }
.why-card h3, .step h3, .story-card h3 { color: #082d68; }
.why-card p, .step p { color: #365477; }
.why-icon, .step b, .graduate-icon {
  background: linear-gradient(145deg, #fff, #c6e3ff);
  color: #0c54a8;
  border: 1px solid #fff;
  box-shadow: inset 0 1px 1px #fff, 0 5px 0 -3px #dbad53, 0 8px 18px rgba(13, 73, 142, .18);
}
.why-icon { width: 52px; height: 52px; border-radius: 16px; }
.why-icon svg { width: 27px; height: 27px; }
.step b { width: 42px; height: 42px; border-radius: 14px; font-size: 13px; }
.schedule .panel { min-height: 135px; padding: 25px 24px 38px; }
.schedule .panel b { color: #0b4083; font-size: clamp(18px, 1.8vw, 23px); overflow-wrap: anywhere; }
.schedule .panel span { color: #46658b; }
.schedule .panel:nth-child(1) b, .schedule .panel:nth-child(4) b { color: #ffe2a0; }
.schedule .panel:nth-child(1) span, .schedule .panel:nth-child(4) span { color: #e1efff; }
#narx .highlight { color: #07478e; }
#talablar .notice { position: relative; z-index: 1; }

/* Kurslarning sarlavhalari va ichki boshqaruvlari yaxlit uslubda. */
.course { border-radius: 24px; }
.course-banner {
  min-height: 195px;
  background: radial-gradient(ellipse at 18% 0%, #258fea, transparent 38%),
    radial-gradient(ellipse at 100% 100%, #0c62be, transparent 48%),
    linear-gradient(135deg, #073879, #041c4e 70%);
  border-bottom: 1px solid #7ccfff;
}
.course-banner::before {
  content: ""; position: absolute; inset: 5px; border: 1px solid rgba(200, 237, 255, .28);
  border-radius: 18px 18px 0 0; pointer-events: none;
}
.course-banner::after {
  content: ""; right: -8%; bottom: -20px; width: 65%; height: 38px;
  border: 0; border-top: 3px solid #f4d183; border-radius: 100% 0 0 0;
  background: linear-gradient(165deg, #f9e6a9, #1479cb 24%, #06295d 80%);
  box-shadow: 0 -4px 18px rgba(59, 181, 255, .4);
}
.course-banner-label { color: #d8eaff; letter-spacing: .13em; }
.course .course-banner h3 { color: white; text-shadow: 0 2px 0 #638fc5, 0 5px 14px #001536; }
.medical-mark {
  width: 49px; height: 49px; border-radius: 16px; color: #fbe2a3;
  border: 1px solid #a2dcff; background: linear-gradient(145deg, rgba(65, 169, 243, .4), rgba(0, 31, 91, .5));
  box-shadow: inset 0 1px 3px #c0eaff80, 0 7px 15px #001b5070;
}
.course-top p { color: #3e597e; }
.course-meta { border-color: #c7dcf2; }
.course .sample-video { border-color: #b9d7f5; background: linear-gradient(145deg, #fff, #e9f4ff); }
.course .sample-icon { background: linear-gradient(145deg, #1973cc, #063a85); box-shadow: 0 4px 10px #1557a63b; }
.course details.program { border-color: #c9dff3; }
.course-bottom { padding-bottom: 32px; }
.course-bottom a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 10px 15px;
  border: 1px solid #51bafa; border-radius: 11px; color: #fff;
  background: linear-gradient(150deg, #176bbd, #053579 75%);
  box-shadow: inset 0 1px 0 #b7e8ff9c, 0 5px 13px #0a4d9f30;
}
.graduate-icon { color: #0b4c99; }
.toc a { border-radius: 15px; padding: 17px 20px; }
.toc a::after { width: 34%; height: 14px; bottom: -7px; opacity: .55; }
.toc a span { color: #af741b; }

@media (hover: hover) {
  .why-card:hover, .story-card:hover, .graduate-empty:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 1px 0 #fff, 0 20px 40px rgba(17, 83, 161, .22);
  }
  .course-bottom a:hover { filter: brightness(1.12); }
}
@media (max-width: 800px) {
  .about-audience { position: static; }
  .result-card { grid-template-columns: 76px minmax(0, 1fr); gap: 18px; padding: 24px 22px 30px; }
  .result-icon { width: 76px; height: 76px; }
  .result-icon svg { width: 58px; height: 58px; }
  .result-card > div { padding-left: 16px; }
  .result-number { font-size: clamp(29px, 4.5vw, 42px); }
  .result-label { font-size: 14px; }
}
@media (max-width: 580px) {
  .results-grid { grid-template-columns: 1fr; gap: 14px; }
  .result-card { min-height: 140px; }
  .why-card { min-height: 0; }
  .schedule .panel { padding: 21px 17px 34px; }
  .schedule .panel b { font-size: 17px; }
  .graduate-empty { padding: 24px 22px 38px; gap: 15px; }
  .course-banner { min-height: 172px; }
}
@media (prefers-reduced-motion: reduce) {
  .why-card, .story-card, .graduate-empty { transition: none; }
}

/* Asl logotip bitta, yaxlit rasm. Ko‘k niqoblar undagi RMS va ilonni izsiz ochadi. */
.orb .logo-full { display: block; width: 100%; height: 100%; object-fit: cover; }
.orb .logo-cover {
  position: absolute;
  inset: 0;
  display: block;
  background: #0138ad;
  pointer-events: none;
  opacity: 0;
}
.orb .logo-cover-rms {
  clip-path: polygon(12% 42%, 56% 42%, 56% 61%, 12% 61%);
  animation: logo-reveal-clean 1s ease-out .2s both;
}
.orb .logo-cover-snake {
  clip-path: polygon(56% 27%, 72% 27%, 72% 41%, 68% 41%, 68% 61%, 72% 61%, 72% 73%, 56% 73%);
  animation: logo-reveal-clean 1s ease-out .7s both;
}
@keyframes logo-reveal-clean { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .orb .logo-cover { display: none; } }
.toc a span { color: #1f589c; }
#narx .highlight { margin-bottom: 14px; }
@media (min-width: 801px) { .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
