/* ==========================================================================
   Rishu Mahajan Portfolio — implemented from the Figma design
   Colours
     navy   #1c136e   deep navy #0b0638 / #110b40
     yellow #ffb606   lilac #8b84ca / #6b58ca
   Fonts: Sora (hero name), Prompt (headings), Poppins (body), Inter (star)
   ========================================================================== */

:root {
  --navy: #1c136e;
  --navy-deep: #0b0638;
  --navy-hero: #110b40;
  --navy-bright: #2d1fa8;
  --yellow: #ffb606;
  --lilac: #8b84ca;
  --lilac-border: #6b58ca;
  --ink: #141414;
  --body: #5c5c5c;
  --glass-bg: rgba(34, 12, 87, 0.49);
  --glass-border: rgba(255, 255, 255, 0.16);

  --font-sora: "Sora", sans-serif;
  --font-prompt: "Prompt", sans-serif;
  --font-poppins: "Poppins", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-poppins);
  color: #444;
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, blockquote { margin: 0; }
img { display: block; max-width: none; }
a { text-decoration: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Shared pieces ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--navy);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.bar { display: block; background: var(--yellow); }
.bar--small { width: 82px; height: 9px; border-radius: 20px; }
.bar--wide { width: 280px; max-width: 70%; height: 6px; border-radius: 4px; }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 30px;
  background: rgba(28, 19, 110, 0.06);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
}
.pill img { width: 14px; height: 14px; }
.pill--light { background: rgba(255, 255, 255, 0.12); color: var(--yellow); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  height: 694px;
  padding-top: 64px;
  background: linear-gradient(to left, var(--navy-deep), var(--navy-hero));
}

.hero__ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.hero__ring--top { width: 390px; height: 390px; left: 63%; top: -282px; }
.hero__ring--left { width: 180px; height: 180px; left: -70px; top: 472px; }

.hero__glow { position: absolute; pointer-events: none; }
.hero__glow--left { width: 1219px; height: 1219px; left: -584px; top: -555px; }
.hero__glow--right { width: 1291px; height: 1278px; left: -245px; top: -428px; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 653px 467px;
  column-gap: 80px;
  align-items: center;
  padding-inline: 0;
}

.hero__text { max-width: 690px; }

.hero__heading { font-size: inherit; font-weight: inherit; }

.hero__title {
  display: block;
  padding-top: 25px;
  font-family: var(--font-sora);
  font-weight: 800;
  font-size: 102px;
  line-height: 104.88px;
  letter-spacing: -5.98px;
  color: #fff;
}

.hero__role {
  display: block;
  padding-top: 11px;
  font-family: var(--font-sora);
  font-weight: 600;
  font-size: 20px;
  line-height: 33px;
  color: var(--yellow);
}
.hero__role strong { font-weight: 600; color: #fff; }

.hero__lead {
  margin-top: 24px;
  width: 610px;
  max-width: 100%;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: .5px;
  color: #fff;
  opacity: .9;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

.btn--hero {
  height: 55px;
  gap: 10.8px;
  padding: 10.8px 26px;
  border: 1px solid transparent;
  border-radius: 12.96px;
  font-weight: 600;
  font-size: 17.28px;
  white-space: nowrap;
}
.btn--hero img { width: 18px; height: 18px; transition: transform .2s ease; }
.btn--hero:hover img { transform: translateX(4px); }
.btn--outline { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn--outline:hover { background: rgba(255, 255, 255, 0.1); }

/* photo + floating chips */
.hero__media { position: relative; margin-top: 9px; }

.hero__photo {
  position: relative;
  width: 388px;
  height: 423px;
  margin-left: 66px;
  border: 3px solid var(--yellow);
  border-radius: 20px;
  box-shadow: 10px 10px 0 0 var(--yellow);
}
.hero__photo-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 20px;
}
.hero__photo-clip img {
  position: absolute;
  width: 125.53%;
  height: 107.64%;
  left: -16.93%;
  top: -5.46%;
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 189.6px;
  padding: 15.6px 18px;
  border: 1.2px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 21.6px 54px rgba(7, 4, 45, 0.3);
  -webkit-backdrop-filter: blur(16.8px);
  backdrop-filter: blur(16.8px);
  color: #fff;
}
.chip--rating { left: 22px; top: 61px; }
.chip--students { left: 366px; top: 333px; }

.chip__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40.8px;
  height: 40.8px;
  border-radius: 12px;
  background: var(--yellow);
}
.chip__icon--star {
  font-family: "Inter", sans-serif;
  font-size: 19.2px;
  color: var(--navy);
}
.chip__icon img { width: 21.6px; height: 21.6px; }

.chip__text strong {
  display: block;
  font-family: var(--font-sora);
  font-weight: 700;
  font-size: 18px;
  line-height: 22.5px;
}
.chip__text small {
  display: block;
  padding-top: 3.6px;
  font-weight: 500;
  font-size: 12px;
  line-height: 15px;
  white-space: nowrap;
}

/* ==========================================================================
   Stats card
   ========================================================================== */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -60px;
  padding-inline: 0;
}
@media (max-width: 1320px) {
  .stats { padding-inline: 20px; }
}
.stats__card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 126px;
  padding: 1px 7px 1px 75px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}
.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 27px 31px;
}
.stat strong {
  font-family: var(--font-prompt);
  font-weight: 700;
  font-size: 30px;
  line-height: 30.8px;
  color: var(--navy);
}
.stat span {
  padding-top: 7px;
  font-size: 16px;
  line-height: 19.8px;
  color: #5f5f5f;
}

/* ==========================================================================
   About Me
   ========================================================================== */
.believe { padding: 50px 20px 75px; }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}
.section-head__sub {
  max-width: 942px;
  font-family: var(--font-prompt);
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  color: var(--ink);
}
.section-head__lead {
  max-width: 942px;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: .5px;
  color: #444;
  opacity: .9;
}
.section-head__lead a { color: var(--navy); font-weight: 600; border-bottom: 2px solid var(--yellow); }

.believe__title {
  position: relative;
  display: inline-block;
  font-family: var(--font-prompt);
  font-weight: 700;
  font-size: clamp(40px, 5.04vw, 80px);
  color: var(--navy);
  white-space: nowrap;
}
.believe__title img {
  position: absolute;
  left: 0;
  top: .25em;
  width: 7.525em;
  height: 1.0125em;
}
.believe__title span { position: relative; margin-left: .3875em; }

.believe__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 334px));
  justify-content: center;
  gap: 39px;
  margin: 49px auto 0;
}

.belief {
  position: relative;
  height: 301px;
  border: 1.5px solid var(--lilac-border);
  border-radius: 25px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.belief:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(28, 19, 110, .12); }

.belief__num {
  position: absolute;
  top: 54px;
  right: 34px;
  font-family: var(--font-prompt);
  font-weight: 600;
  font-size: 70px;
  line-height: 28px;
  letter-spacing: .5px;
  text-align: right;
}
.belief__num--yellow { color: var(--yellow); }
.belief__num--lilac { color: var(--lilac); }

.belief__tile {
  position: absolute;
  left: 40px;
  top: 35px;
  width: 67px;
  height: 67px;
  border-radius: 15px;
  transform: rotate(-9.06deg);
}
.belief__tile--yellow { background: rgba(255, 182, 6, 0.2); }
.belief__tile--navy { background: rgba(28, 19, 110, 0.15); }

.belief__icon {
  position: absolute;
  left: 57px;
  top: 52px;
  width: 33px;
  height: 33px;
  transform: rotate(-9.06deg);
}

.belief h3 {
  position: absolute;
  left: 40px;
  top: 131px;
  width: 277px;
  max-width: calc(100% - 50px);
  font-weight: 700;
  font-size: 22px;
  line-height: 26.88px;
  color: var(--ink);
}
.belief p {
  position: absolute;
  left: 41px;
  top: 197px;
  width: 250px;
  max-width: calc(100% - 60px);
  font-size: 15px;
  line-height: 24px;
  color: var(--body);
  opacity: .9;
}

/* ==========================================================================
   Consulting
   ========================================================================== */
.consult {
  min-height: 522px;
  padding: 58px 20px 60px;
  background: linear-gradient(to left, var(--navy-deep), var(--navy));
}
.consult__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 647.5px;
  column-gap: 40px;
  max-width: 1437px;
  margin-inline: auto;
}

.consult__text { max-width: 691px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  line-height: 18.15px;
  letter-spacing: 1.76px;
  text-transform: uppercase;
  color: var(--yellow);
}
.eyebrow span { width: 27px; height: 2px; background: var(--yellow); }

.consult h2 {
  margin-top: 12px;
  font-weight: 700;
  font-size: 60px;
  line-height: 65px;
  letter-spacing: -.76px;
  color: #fff;
}
.consult__lead {
  max-width: 673px;
  padding: 24px 0 32px;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .9);
}
.consult__lead a { color: var(--yellow); border-bottom: 1px solid rgba(255, 182, 6, .5); }

.btn--courses {
  height: 50px;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: var(--font-prompt);
  font-weight: 700;
  font-size: 16px;
  line-height: 23.1px;
  box-shadow: 0 10px 12.5px rgba(255, 182, 6, 0.2);
  cursor: pointer;
}
.btn--courses img { width: 18px; height: 18px; transition: transform .2s ease; }
.btn--courses:hover img { transform: translateX(4px); }

.consult__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 17px;
}
.glass--info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 25px;
}
.glass__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 182, 6, 0.4);
  border-radius: 22px;
  background: rgba(255, 182, 6, 0.1);
}
.glass__icon img { width: 22px; height: 22px; }
.glass--info h3 {
  padding-top: 4px;
  font-family: var(--font-prompt);
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -.4px;
  color: #fff;
}
.glass--info p {
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -.1px;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   What I Teach
   ========================================================================== */
.teach {
  position: relative;
  overflow: hidden;
  padding: 70px 20px 60px;
  background: #fff;
}
.teach__blob { position: absolute; pointer-events: none; }
.teach__blob--tl { width: 300px; height: 300px; left: -80px; top: -80px; }
.teach__blob--br { width: 250px; height: 250px; right: -13px; bottom: 0; }

.teach__head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.teach__title {
  font-family: var(--font-prompt);
  font-weight: 700;
  font-size: clamp(34px, 4.03vw, 64px);
  line-height: 1.125;
  color: var(--navy);
}
.teach__title span { color: var(--yellow); }
.teach__lead {
  max-width: 767px;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: .5px;
  color: #444;
  opacity: .9;
}

.teach__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1437px;
  margin: 72px auto 0;
}

.course {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 228px;
  padding: 28px;
  border: 1.5px solid #e8e5f5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(28, 19, 110, 0.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.course:hover { transform: translateY(-4px); border-color: var(--yellow); box-shadow: 0 14px 24px rgba(28, 19, 110, .1); }
.course--featured { border: 2px solid var(--yellow); box-shadow: 0 8px 16px rgba(28, 19, 110, 0.08); }

.course__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(28, 19, 110, 0.06);
}
.course__icon img { width: 24px; height: 24px; }

.course h3 {
  margin-bottom: 6px;
  font-family: var(--font-prompt);
  font-weight: 700;
  font-size: 20px;
  line-height: normal;
  color: var(--navy);
}
.course p {
  font-size: 14px;
  line-height: 22px;
  color: var(--body);
}

.course--cta {
  justify-content: center;
  gap: 20px;
  border: 0;
  background: linear-gradient(to right, var(--navy), var(--navy-bright));
  box-shadow: 0 12px 20px rgba(28, 19, 110, 0.25);
}
.course--cta h3 {
  margin: 0;
  font-size: 22px;
  line-height: 30px;
  color: #fff;
}
.course--cta:hover { border-color: transparent; transform: none; }

.btn--small {
  align-self: flex-start;
  height: 44px;
  gap: 8px;
  padding: 0 18px;
  border-radius: 12px;
  font-family: var(--font-prompt);
  font-weight: 700;
  font-size: 15px;
}
.btn--small img { width: 16px; height: 16px; transition: transform .2s ease; }
.btn--small:hover img { transform: translateX(4px); }

/* ==========================================================================
   Reviews
   ========================================================================== */
.testimonials {
  padding: 60px 20px;
  background: linear-gradient(to left, var(--navy-deep), var(--navy));
}
.testimonials__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.testimonials__head h2 {
  font-family: var(--font-prompt);
  font-weight: 700;
  font-size: clamp(34px, 3.78vw, 60px);
  line-height: 68px;
  color: #fff;
}
.testimonials__head p {
  max-width: 700px;
  font-size: 16px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.8);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1437px;
  margin: 54px auto 0;
}

.quote {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
  padding: 25px;
  transition: transform .25s ease, border-color .25s ease;
}
.quote:hover { transform: translateY(-4px); border-color: rgba(255, 182, 6, .5); }

.quote__stars {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1.2px;
  color: var(--yellow);
}
.quote blockquote {
  font-size: 15px;
  line-height: 24px;
  color: #fff;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--yellow);
  font-family: var(--font-prompt);
  font-weight: 800;
  font-size: 18px;
  color: #1e1b4b;
}
.quote figcaption strong {
  display: block;
  font-family: var(--font-prompt);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.quote figcaption small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #9999cc;
}

/* ==========================================================================
   Contact (closing banner)
   ========================================================================== */
.closing { padding: 52px 20px; }
.closing__card {
  max-width: 1460px;
  margin-inline: auto;
  padding: 31px 62px 44px;
  border-radius: 30px;
  background: linear-gradient(104.98deg, #1c136e 14%, #ffb606 125.8%);
  text-align: center;
}
.closing__card > .pill { margin-bottom: 8px; }
.closing h2 {
  font-family: var(--font-prompt);
  font-weight: 700;
  font-size: clamp(28px, 2.65vw, 42px);
  line-height: 58px;
  color: #fff;
}
.closing__card > p {
  max-width: 1336px;
  margin: 18px auto 0;
  font-size: 16px;
  line-height: 24px;
  color: #d4d4d4;
}

.contact__details {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.contact__details li {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 16px;
  background: rgba(11, 6, 56, .35);
}
.contact__details span {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--yellow);
}
.contact__details address,
.contact__details a {
  font-style: normal;
  font-size: 15px;
  line-height: 24px;
  color: #fff;
  overflow-wrap: anywhere;
}
.contact__details a:hover { text-decoration: underline; }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 36px;
  text-align: left;
}

.form { display: grid; gap: 14px; align-content: start; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .9); }
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 12px;
  background: rgba(11, 6, 56, .35);
  font-family: var(--font-poppins);
  font-size: 15px;
  color: #fff;
}
.form select option { color: #141414; }
.form input:focus,
.form select:focus,
.form textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.form .btn { justify-self: start; }

.contact__map {
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 20px;
}
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ==========================================================================
   Thank-you page
   ========================================================================== */
.thanks {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 48px 20px;
  overflow: hidden;
  background: linear-gradient(to left, var(--navy-deep), var(--navy-hero));
}
.thanks__card {
  position: relative;
  width: min(100%, 680px);
  padding: 44px 40px;
  text-align: center;
}
.thanks__tick {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--yellow);
  font-family: "Inter", sans-serif;
  font-size: 34px;
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(255, 182, 6, .3);
}
.thanks h1 {
  font-family: var(--font-prompt);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  color: #fff;
}
.thanks__lead {
  max-width: 520px;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 28px;
  color: rgba(255, 255, 255, .88);
}
.thanks__details {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.thanks__details li {
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: rgba(11, 6, 56, .35);
}
.thanks__details span {
  display: block;
  margin-bottom: 4px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--yellow);
}
.thanks__details a,
.thanks__details address {
  font-style: normal;
  font-size: 15px;
  line-height: 24px;
  color: #fff;
}
.thanks__details a:hover { text-decoration: underline; }
.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 640px) {
  .thanks__card { padding: 32px 22px; }
  .thanks__actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 40px;
  background: var(--navy-deep);
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
}
.footer__social {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: #fff;
  transition: background .2s ease, color .2s ease;
}
.footer__social:hover { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .hero { height: auto; padding-bottom: 130px; }
  .hero__inner { grid-template-columns: 1fr 440px; column-gap: 40px; padding-inline: 24px; }
  .hero__title { font-size: clamp(64px, 8vw, 102px); line-height: 1.03; letter-spacing: -.058em; }
  .hero__photo { margin-left: 0; width: 100%; max-width: 388px; }
  .chip--rating { left: -40px; }
  .chip--students { left: auto; right: -10px; }

  .believe__grid { grid-template-columns: repeat(2, minmax(0, 334px)); }

  .consult__inner { grid-template-columns: 1fr; row-gap: 40px; }
  .consult__grid { margin-top: 0; }

  .teach__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonials__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__details { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero { padding-top: 48px; padding-bottom: 110px; }
  .hero__inner { grid-template-columns: 1fr; row-gap: 56px; justify-items: start; }
  .hero__media { margin: 0 0 20px 56px; width: 100%; max-width: 388px; }
  .chip--rating { left: -56px; }
  .chip--students { right: -30px; }
  .hero__title { padding-top: 0; }

  .stats__card { grid-template-columns: repeat(2, 1fr); padding: 8px; }
  .stat { padding: 20px 24px; }
}

@media (max-width: 640px) {
  .hero__lead { width: auto; }
  .hero__actions .btn { width: 100%; max-width: 320px; }
  .hero__media { margin-left: 40px; max-width: calc(100% - 50px); }
  .hero__photo { height: auto; aspect-ratio: 388 / 423; }
  .chip { min-width: 160px; padding: 10px 14px; }
  .chip--rating { left: -40px; top: 30px; }
  .chip--students { right: -10px; top: auto; bottom: -24px; }

  .believe__grid { grid-template-columns: 1fr; justify-items: stretch; }
  .believe__title { white-space: normal; text-align: center; }
  .believe__title img { display: none; }
  .believe__title span { margin-left: 0; border-bottom: .12em solid var(--yellow); }

  .consult h2 { font-size: 40px; line-height: 46px; }

  .teach__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }

  .closing__card { padding: 28px 22px 32px; border-radius: 22px; }
  .closing h2 { line-height: 1.3; }
  .footer { padding: 20px; }
}
