/* Homepage mobile treatment only; no desktop declarations. */
@media (max-width: 760px) {
  .home-page .site-header {
    position: relative;
    z-index: 40;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 16px;
    gap: 12px;
  }
  .home-page .site-header .brand {
    flex: 0 1 auto;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
  }
  .home-page .home-menu-toggle {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid #dce4ef;
    border-radius: 12px;
    background: #f7faff;
    color: #102a56;
    cursor: pointer;
  }
  .home-page .home-menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .15s ease, opacity .15s ease;
  }
  .home-page .home-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .home-page .home-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .home-page .home-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .home-page .site-header .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    z-index: 100;
    width: auto;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
    margin: 0;
    padding: 10px;
    border: 1px solid #dfe6ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .17);
  }
  .home-page .site-header .main-nav.is-open { display: flex; }
  .home-page .site-header .main-nav > a {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
    padding: 11px 14px;
    border-radius: 10px;
    color: #334155;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
    white-space: nowrap;
  }
  .home-page .site-header .main-nav > a.active {
    color: #1d4ed8;
    background: #eff6ff;
  }
  .home-page .site-header .main-nav > a.feedback-nav-link {
    min-height: 44px;
    justify-content: center;
    margin-top: 4px;
  }
  .home-page .site-header .main-nav [data-auth-nav] {
    display: flex;
    width: 100%;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #edf1f7;
  }
  .home-page .site-header .main-nav [data-auth-nav] .auth-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    font-size: 14px;
  }

  .home-page .hero { padding: 34px 18px 32px; }
  .home-page .hero h1 {
    max-width: 490px;
    margin-bottom: 12px;
    font-size: clamp(29px, 7.8vw, 34px);
    line-height: 1.12;
    letter-spacing: -.035em;
  }
  .home-page .hero p {
    max-width: 390px;
    font-size: 14px;
    line-height: 1.5;
  }
  .home-page .home-section { padding: 28px 16px; }
  .home-page .section-heading,
  .home-page .compact-heading { margin-bottom: 16px; }
  .home-page .section-heading h2,
  .home-page .benefits-heading h2 {
    font-size: clamp(21px, 5.5vw, 24px);
    line-height: 1.22;
  }
  .home-page .section-label { font-size: 10.5px; }

  /* Vertical, compact IELTS skill cards with left-side icons. */
  .home-page .home-skills {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .home-page .home-skills .skill-card,
  .home-page .home-skills .full-mock-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    align-items: start;
    min-height: 0;
    padding: 15px 16px;
    border-radius: 16px;
    text-align: left;
  }
  .home-page .home-skills .skill-icon {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 12px;
  }
  .home-page .home-skills .skill-icon svg { width: 23px; height: 23px; }
  .home-page .home-skills .skill-card h3 {
    grid-column: 2;
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.3;
  }
  .home-page .home-skills .skill-card p {
    grid-column: 2;
    font-size: 13px;
    line-height: 1.45;
  }
  .home-page .home-skills .card-link {
    grid-column: 2;
    margin: 0;
    padding-top: 7px;
    font-size: 13px;
  }
  .home-page .language-section { padding-top: 18px; }
  .home-page .language-grid { grid-template-columns: 1fr; gap: 10px; }
  .home-page .language-card { padding: 16px; }
  .home-page .benefits-section { padding-top: 20px; padding-bottom: 38px; }
  .home-page #atajonov-auth-save-prompt .asp-inner {
    min-height: 42px;
    padding: 8px 12px;
    gap: 6px;
    font-size: 12px;
    line-height: 1.45;
  }
}
@media (max-width: 360px) {
  .home-page .site-header .brand { font-size: 21px; }
  .home-page .home-section { padding-left: 13px; padding-right: 13px; }
  .home-page .home-skills .skill-card,
  .home-page .home-skills .full-mock-card { padding: 14px; column-gap: 12px; }
  .home-page .hero { padding: 30px 14px 28px; }
}
