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

:root {
  /* Neutral (white) background */
  --bg: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.80);
  --text: #0b1b12;
  --text-muted: rgba(11, 27, 18, 0.62);

  /* Accent (green) */
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --border: rgba(22, 101, 52, 0.38);
  --border-strong: rgba(22, 101, 52, 0.62);
}

html {
  background: var(--bg);
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  background-image: none;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

body.popup-open-body {
  overflow: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Umumiy section — barcha bloklar bir xil */
.section-block {
  padding: 40px 0 48px;
  position: relative;
  z-index: 1;
  background-color: transparent;
}

/* Glow effects */
.glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.glow-left {
  left: -150px;
  top: 20%;
  background: var(--accent);
}
.glow-right {
  right: -150px;
  top: 50%;
  background: var(--accent);
}

/* Logo */
.logo {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  padding: 8px 0;
  position: relative;
  z-index: 1;
}

/* Hero */
.hero {
  padding: 14px 0 34px;
  height: 560px;
  position: relative;
  z-index: 2;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 380px;
  /* Remove hero-only overlay to keep global background consistent */
  background: none;
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}


.hero .container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-bottom-bgimg {
  position: relative;
  z-index: 2;
  margin-top: 38px;
  padding-top: 0;
  width: 100%;
  max-width: 730px;
  height: 50px;
  margin-left: auto;
  margin-right: auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.hero-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 0;
  grid-template-areas:
    "image copy"
    "image cta";
}

.hero-image-wrap {
  position: relative;
  justify-self: end;
  transform: translate(40px, -38px);
  z-index: 1;
  grid-area: image;
}

.hero-copy {
  grid-area: copy;
}

.hero-cta-main {
  grid-area: cta;
  transform: translateX(64px);
  position: relative;
  top: -78px;
  z-index: 5;
}

/* Avatar uchun alohida soya (matnlar soyaga tushmaydi) */
.hero-image-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  /* Remove image-only overlay to keep global background consistent */
  background: none;
  pointer-events: none;
}


.hero-image {
  display: block;
  width: 380px;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  object-position: center;
}

.hero-content {
  padding: 0;
  margin-top: 0;
  transform: translateX(40px);
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-author {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 4px;
  letter-spacing: 0.05em;
  font-family: 'Inter', Arial, sans-serif;
  text-align: center;
}

.hero-title {
  font-size: clamp(3.4rem, 7.4vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  line-height: 1.1;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 480px;
  font-family: 'Inter', Arial, sans-serif;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* Buttons */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-center {
  justify-content: center;
  margin-top: 24px;
}

.benefits .cta-center.hero-cta {
  margin-top: 40px;
}

.cta-center.hero-cta {
  align-items: center;
}

.hero-cta {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 0;
  margin-left: 0;
}

/* Hero ichida CTA joylashuvi */
.hero .hero-cta {
  margin-top: 8px;
  margin-left: 0;
}


.hero-cta-btn {
  width: 359px;
  height: 75px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  background: linear-gradient(135deg, #34d399 0%, #22c55e 35%, #16a34a 70%, #15803d 100%);
  border-radius: 50px;
  border: none;
  font-family: 'Inter', Arial, sans-serif;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.hero-cta-btn:hover {
  background: linear-gradient(135deg, #6ee7b7 0%, #22c55e 40%, #16a34a 80%, #166534 100%);
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.35);
}

.hero-cta-text {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 17px;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: default;
  margin-top: 4px;
  position: relative;
  display: inline-block;
}

.hero-cta-text:hover {
  color: var(--text-muted);
}

/* Strelka: matndan tugmaga ishora */
.cta-group.hero-cta.cta-center .hero-cta-text::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  width: 22px;
  height: 34px;
  transform: translateX(150px) rotate(18deg);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2215%22%20height%3D%2225%22%20viewBox%3D%220%200%2015%2025%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M8.08163%200.944045C7.72875%200.838982%207.35751%201.03987%207.25244%201.39276L5.54027%207.14328C5.4352%207.49616%205.63609%207.86739%205.98898%207.97247C6.34185%208.07755%206.71308%207.87666%206.81816%207.52378L8.34009%202.41218L13.4517%203.93411C13.8046%204.03918%2014.1758%203.83829%2014.2809%203.48541C14.3859%203.13253%2014.1851%202.7613%2013.8322%202.65623L8.08163%200.944045ZM8.95251%203.5439L9.53883%203.22662L8.47772%201.26571L7.89139%201.58299L7.30507%201.90028L8.36619%203.86118L8.95251%203.5439ZM2.26148%2021.397L2.49485%2022.0214C10.0616%2019.1939%2013.3832%2010.3309%209.53883%203.22662L8.95251%203.5439L8.36619%203.86118C11.8253%2010.2535%208.83651%2018.2283%202.02813%2020.7724L2.26148%2021.397Z%22%20fill%3D%22%239F9898%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  opacity: 0.9;
  z-index: 5;
}

/* Desktop: 1-sahifa hero CTA matn va strelka joylashuvi */


.btn {
  display: inline-block;
  padding: 12px 20px;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

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

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Benefits */
.benefits {
  /* Pull section closer to hero */
  padding: 0 0 40px;
  margin-top: -204px;
  min-height: 650px;
  position: relative;
  z-index: 1;
  background-color: transparent;
}

/* Kurs intro — ikkinchi sahifa tepasi, Kartochkalardan oldin */
.course-intro {
  max-width: 970px;
  margin: 0 auto 28px;
  text-align: center;
  font-family: 'Inter', Arial, sans-serif;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}

.course-intro-heading {
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  font-weight: 700;
  margin: 0 0 22px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.course-intro-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-intro-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid var(--border-strong);
  font-size: clamp(0.96rem, 2.1vw, 1.12rem);
  line-height: 1.5;
  color: var(--text);
}

.course-intro-list li::before {
  content: "✓";
  counter-increment: courseIntro;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
}

.course-intro-list {
  counter-reset: courseIntro;
}

.course-intro-desc {
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  margin: 0 0 24px;
  color: #ffffff;
}

.course-intro-images {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 24px 0 18px;
  flex-wrap: wrap;
}

.course-intro-image {
  width: 300px;
  max-width: 100%;
  border-radius: 16px;
  display: block;
}

.course-intro-cta {
  font-size: clamp(1.15rem, 2.2vw, 1.3rem);
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--accent);
}

.course-intro-cta strong {
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(6, 150px);
  column-gap: 14px;
  row-gap: 22px;
  justify-content: center;
}

.benefit-card:nth-child(1) { grid-column: 1 / span 2; }
.benefit-card:nth-child(2) { grid-column: 3 / span 2; }
.benefit-card:nth-child(3) { grid-column: 5 / span 2; }
.benefit-card:nth-child(4) { grid-column: 2 / span 2; }
.benefit-card:nth-child(5) { grid-column: 4 / span 2; }

.benefit-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 10px 16px 12px;
  text-align: center;
  width: 300px;
  height: 190px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefit-card p {
  font-size: 18px;
  font-family: 'Inter', Arial, sans-serif;
  color: #333333;
  margin: 0;
  line-height: 1.35;
  overflow: visible;
  max-width: 100%;
}

/* Benefit icons */
.benefit-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 12px;
  background: rgba(230, 126, 34, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.benefit-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icon-card1,
.icon-card2 {
  background: transparent;
  width: 191.99px;
  height: 115px;
  margin-top: 0;
}

.benefit-icon-wrap-3 {
  position: relative;
  display: inline-block;
}

.icon-card3 {
  background: transparent;
  width: 111.71px;
  height: 112.42px;
  margin-top: 0;
  transform: rotate(-12deg);
}

.benefit-card3-check {
  position: absolute;
  right: -24px;
  top: 62%;
  transform: translateY(-50%) rotate(12deg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.benefit-card3-check img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.benefit-icon-wrap-4 {
  position: relative;
  display: inline-block;
}

.icon-card4,
.icon-card5 {
  background: transparent;
  width: 88px;
  height: 89px;
  margin-top: 0;
}

.benefit-card4-extra {
  position: absolute;
  right: -24px;
  top: 62%;
  transform: translateY(-50%) rotate(12deg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.benefit-card4-extra img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.benefit-icon-wrap-5 {
  position: relative;
  display: inline-block;
}

.benefit-card5-extra {
  position: absolute;
  right: 4px;
  top: 80%;
  transform: translateY(-50%) rotate(12deg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.benefit-card5-extra img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

/* Instructor */
.instructor {
  padding: 18px 0 40px;
  margin-top: -24px;
  height: auto;
  position: relative;
  z-index: 1;
  background-color: transparent;
  /* Web: close the gap before footer */
  margin-bottom: -180px;
}

.instructor-title {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: 'Inter', Arial, sans-serif;
}

.instructor-grid {
  display: grid;
  grid-template-columns: 443px 360px;
  gap: 16px;
  align-items: start;
  justify-content: center;
}

.achievements {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  transform: translateX(-52px);
}

.achievement {
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  width: 443px;
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  font-size: 17px;
  color: var(--text);
  font-family: 'Inter', Arial, sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.achievements .achievement:nth-child(even) {
  border-color: var(--border-strong);
}

.achievement:hover {
  box-shadow: none;
}

.achievement:focus,
.achievement:focus-visible,
.course-intro-list li:hover,
.course-intro-list li:focus-within {
  border-color: var(--border-strong);
}

.instructor-image-wrap {
  position: sticky;
  top: 24px;
  justify-self: start;
  transform: translateX(0px);
  width: 360px;
}

.instructor-image {
  width: 360px;
  height: 510px;
  background-image: url('./assets/image2.webp');
  /* "cover" pastini kesib yuboradi; "contain" bilan to'liq ko'rinadi */
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
  transform: translateY(-146px);
}

.instructor-cta {
  margin-top: 0;
  margin-left: -30px;
  align-items: flex-start;
}

.instructor-cta {
  align-items: center;
}

/* Web: lift instructor CTA a bit */
.instructor .instructor-cta {
  position: relative;
  top: -256px;
}

@media (min-width: 901px) {
  /* Web: move only the button to right (3rd section) */
  .instructor .instructor-cta .hero-cta-btn {
    transform: translateX(18px);
  }
}

.footer {
  padding: 22px 16px 34px;
  min-height: 169px;
  background: transparent;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-text {
  font-size: 0.95rem;
  color: rgba(11, 27, 18, 0.82);
  margin: 0 0 12px;
  line-height: 1.5;
  font-family: 'Inter', Arial, sans-serif;
}

.footer-contact {
  font-size: 0.95rem;
  color: rgba(11, 27, 18, 0.86);
  margin: 0 0 16px;
  font-family: 'Inter', Arial, sans-serif;
  text-align: center;
}

.footer-phone {
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-phone:hover {
  text-decoration: underline;
}

.footer-phone-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-phone-svg {
  width: 16px;
  height: 16px;
  display: block;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: #e3e3e3;
  margin: 0 0 8px;
  max-width: 700px;
  line-height: 1.4;
  font-family: 'Inter', Arial, sans-serif;
}

.footer-copy {
  font-size: 0.9rem;
  color: #e3e3e3;
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
}

/* Popup (Tilda dagi kabi) */
.popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.popup.popup_visible {
  opacity: 1;
  visibility: visible;
}

.popup.popup_visible .popup__box {
  transform: scale(1);
  opacity: 1;
}

.popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.popup__box {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.popup__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.popup__close:hover {
  color: var(--text);
}

.popup__title {
  font-size: 1.1rem;
  margin: 0 0 20px;
  color: #333333;
  text-align: center;
}

.popup__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.popup__label {
  font-size: 0.9rem;
  color: #555555;
}

.popup__input {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 1rem;
  color: #111111;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
}

.popup__input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.popup__input:focus {
  border-color: #2f80ed;
  outline: none;
}

.popup__input:focus-visible {
  outline: 2px solid #e1edff;
  outline-offset: 1px;
}

.popup__input.popup__input--error {
  border-color: #e74c3c;
}

/* Xalqaro telefon inputi popup ichida to'g'ri ko'rinishi uchun */
.popup__box .iti {
  width: 100%;
}

.popup__error {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #e74c3c;
}

.popup__submit {
  margin-top: 8px;
  width: 100%;
  display: block;
}

/* Popup submit — same green style as main CTA */
.popup__submit.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #34d399 0%, #22c55e 35%, #16a34a 70%, #15803d 100%);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.18);
}

.popup__submit.btn-primary:hover {
  background: linear-gradient(135deg, #6ee7b7 0%, #22c55e 40%, #16a34a 80%, #166534 100%);
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.26);
}

/* Popup ichidagi telefon inputi (kod + raqam bitta qatorda) */
.popup-phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.popup-phone-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  cursor: pointer;
  font-size: 1rem;
  color: #111111;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.popup-phone-dropdown span {
  font-weight: 400;
}

.popup-phone-chev {
  width: 16px;
  height: 16px;
}

.popup-phone-dropdown-list {
  display: none;
  position: absolute;
  z-index: 10000;
  left: 0;
  right: 0;
  margin-top: 6px;
  max-height: 220px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  padding: 4px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.popup-phone-dropdown-list.open {
  display: block;
}

.popup-phone-dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #111111;
}

.popup-phone-dropdown-item:hover {
  background: #f2f2f2;
}

.popup-country-name {
  margin-right: 10px;
  color: #111111;
}

.popup-country-code {
  font-weight: 400;
  color: #111111;
}

.popup-phone-chev.open {
  transform: rotate(180deg);
}

/* ===== intl-tel-input (telefon raqami) uchun stil sozlamalari ===== */

/* Popup ichidagi telefon inputi matnini qora rangda qilish */
.popup__box .iti input[type="tel"],
.popup__box .iti .iti__selected-dial-code {
  color: #111111;
}

/* Tanlangan davlat kodi (input yonidagi +998 va hokazo) doim ko'rinib tursin */
.popup__box .iti__selected-dial-code {
  display: inline-block !important;
  margin-left: 6px;
}

/* Davlatlar ro'yxati — fon oq, matn qora */
.iti__country-list {
  background-color: #ffffff;
  color: #111111;
  z-index: 10001; /* popup (9999) dan yuqori bo'lsin */
}

.iti__country-name {
  color: #111111;
}

.iti__dial-code {
  color: #111111;
}

/* Popup ichida kod rangi aniq qora bo'lishi uchun */
.popup__box .iti__dial-code {
  color: #111111 !important;
}

/* Davlat nomi chapda, kod o'ngda tartibli chiqishi uchun */
.iti__country {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.iti__country .iti__flag-box {
  order: 3;
  margin-right: 0;
  margin-left: 8px;
}

.iti__country-name {
  order: 1;
  margin-right: auto;
}

.iti__dial-code {
  order: 2;
  margin-left: auto;
  margin-right: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  /* Mobile'da chapga surilib ketmasin */
  .hero-image-wrap,
  .hero-content,
  .hero-cta-main,
  .achievements,
  .instructor-image-wrap {
    transform: none !important;
  }

  .container {
    padding: 0 14px;
  }

  .course-intro-cards {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .course-intro-card {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .hero {
    height: auto;
    min-height: 0;
    padding: 10px 0 16px;
    background-position: left top;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    grid-template-areas:
      "copy"
      "image"
      "cta";
    row-gap: 0px;
    column-gap: 10px;
  }

  .hero-image-wrap {
    max-width: 300px;
    margin: 0 auto;
    justify-self: center;
    margin-bottom: 0;
    position: relative;
    top: -100px;
    height: auto;
    overflow: visible;
  }

  .hero-image {
    width: 100%;
    height: auto;
    max-width: 300px;
    object-fit: contain;
    object-position: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .hero-content {
    transform: none;
    margin-top: 0;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8.8vw, 3.1rem);
    white-space: normal;
  }

  .hero-cta-main {
    margin-top: 0;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    position: relative;
    top: -177px;
  }
  
  .hero .hero-cta {
    margin-top: 0;
  }

  .hero-cta-btn {
    width: min(359px, 100%);
    position: relative;
    top: 0;
  }

  .hero-cta-text {
    font-size: 13px;
    white-space: nowrap;
  }

  .hero-bottom-bgimg {
    margin-top: 22px;
    max-width: 100%;
    height: 44px;
  }

  .cta-group {
    justify-content: center;
  }

  .benefits {
    height: auto;
    min-height: 650px;
    margin-top: -152px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
  }

  .benefit-card {
    width: 100%;
    max-width: 360px;
    height: auto;
    min-height: 190px;
  }

  /* Mobile'da 3+2 layoutni bekor qilish */
  .benefit-card:nth-child(1),
  .benefit-card:nth-child(2),
  .benefit-card:nth-child(3),
  .benefit-card:nth-child(4),
  .benefit-card:nth-child(5) {
    grid-column: auto !important;
  }

  .instructor {
    height: auto;
    min-height: 600px;
    margin-bottom: 0;
  }

  .instructor-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .achievements {
    margin-top: 24px;
  }

  .instructor-image-wrap {
    max-width: 100%;
    margin: 0 auto;
    transform: none;
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    top: 0;
  }

  .instructor-image {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    max-width: 350px;
    margin: 0 auto 8px;
    transform: translateY(-32px);
  }

  .instructor-cta {
    margin-left: 0;
    margin-top: 94px !important;
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  /* 3-sahifadagi CTA ham 1-sahifadagi bilan bir xil o'lchamda bo'lsin */
  .instructor-cta .hero-cta-btn {
    width: 359px !important;
    height: 75px !important;
    max-width: 100%;
  }

  .instructor-cta .hero-cta-text {
    font-size: 13px;
    text-align: center;
    display: block;
    white-space: nowrap;
  }

  .achievement {
    width: 100%;
    height: auto;
    min-height: 52px;
    padding: 12px 16px;
    display: block;
    font-size: 15px;
    overflow: visible;
  }

  .achievements {
    transform: none;
  }

  .popup__box {
    width: 100%;
    max-width: 420px;
  }

  .footer {
    margin-top: -244px;
  }
}

@media (max-width: 560px) {
  /* Mobile: kurs ro'yxatidagi raqam va matn vertikal markazda tursin */
  .course-intro-list li {
    align-items: center;
  }

  .hero {
    padding: 18px 0 28px;
  }

  .footer {
    height: auto;
    min-height: 169px;
    padding: 20px 16px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .cta-group {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

  /* Faqat popup tugmasi 100% bo'lsin */
  .popup__submit {
    width: 100%;
  }

  .hero-bottom-bgimg {
    height: 40px;
  }

  .cta-group.hero-cta.cta-center .hero-cta-text::after {
    transform: translateX(120px) rotate(18deg);
  }

  .hero-cta-text {
    font-size: 12px;
  }
}

/* Ruxsat berilganda animatsiyalarni kamaytirish */
@media (prefers-reduced-motion: reduce) {
  .popup,
  .popup__box,
  .btn,
  .benefit-card,
  .achievement {
    transition: none;
  }
}
