/* ========== HERO — Figma 71:18 (mobile) ========== */
/* Frame 618px full-bleed, content x=139 → 10px на viewport 360 */

@media (max-width: 1024px) {
  body {
    overflow-x: hidden;
  }

  .page {
    overflow-x: hidden;
    max-width: 100% !important;
    width: 100%;
  }

  .hero {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 1460px !important;
    height: auto !important;
    margin: 0;
    padding: 0 !important;
    background: #6f6054;
    overflow: hidden;
    isolation: isolate;
  }

  .hero__bg,
  .hero__portrait-wrap {
    display: none !important;
  }

  /* ---- 113:26 — background group ---- */
  .hero__mobile-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
  }

  /* 109:23 — grad 618×1460, centered */
  .hero__mobile-grad-wrap {
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -309px;
    width: 618px;
    height: 1460px;
    overflow: hidden;
    pointer-events: none;
  }

  .hero__mobile-grad {
    position: absolute;
    top: 0;
    left: -157.36%;
    width: 414.72% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center top;
  }

  /* 113:238 — portrait 618×635 at y=825 */
  .hero__portrait-mobile-wrap {
    display: block;
    position: absolute;
    top: 825px;
    left: 50%;
    margin-left: -309px;
    width: 618px;
    max-width: none;
    height: 635px;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
  }

  .hero__mobile-portrait {
    display: block;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center top;
  }

  /* ---- 71:25 — header, y=20, x=139 → 10px ---- */
  .header {
    position: absolute !important;
    top: 20px;
    left: calc(50% - 0.5px);
    width: 339px;
    max-width: calc(100% - 20px);
    margin: 0 !important;
    transform: translateX(-50%) !important;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    z-index: 3;
  }

  .logo {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .logo__mark {
    flex-shrink: 0;
  }

  .logo img.logo__name,
  .logo img.logo__garant {
    width: auto;
    height: 40px;
    max-width: none;
    flex-shrink: 0;
  }

  .logo__text {
    display: block !important;
    width: 176px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
  }

  .header__hotline,
  .header .btn-outline {
    display: none;
  }

  .header__contacts {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .header__messengers {
    gap: 8px;
  }

  .header__phone > div {
    width: 178px;
    gap: 12px;
  }

  .header__phone .muted {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #dfdfdf;
    opacity: 0.4;
  }

  .header__phone .value {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.4px;
    color: #fff;
  }

  /* ---- 71:50 — hero text, y=168 ---- */
  .hero__main {
    position: absolute !important;
    top: 168px;
    left: 50%;
    width: 340px;
    max-width: calc(100% - 20px);
    margin: 0 !important;
    transform: translateX(-50%) !important;
    display: block;
    z-index: 2;
  }

  .hero__left {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero__title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.64px;
    line-height: 1.2;
    color: #fff;
    text-align: center;
  }

  .hero__subtitle {
    margin-top: 24px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  .hero__subtitle img {
    margin-top: 0;
  }

  .hero__subtitle p {
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #dfdfdf;
    text-align: center;
  }

  .hero__left .btn-gold--lg {
    margin-top: 32px;
    width: 100%;
    height: 90px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.32px;
    border-radius: 12px;
  }

  /* 71:66 — note under CTA */
  .hero__note {
    display: block !important;
    width: 100%;
    margin: 24px 0 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    color: #dfdfdf;
    text-align: center;
  }

  .hero__note strong {
    font-weight: 700;
  }

  .hero__right {
    position: static;
    width: 0;
    height: 0;
    margin: 0;
    overflow: visible;
  }

  /* 71:74 — cards, y=647, 340×158 */
  .hero-cards {
    position: absolute;
    top: 499px;
    left: 50%;
    width: 340px;
    max-width: 100%;
    margin: 0;
    transform: translateX(-50%);
    z-index: 2;
    gap: 8px;
  }

  .hero-card {
    width: 100%;
  }

  .hero-card--light {
    height: 158px;
  }

  .hero-card--light p {
    width: 192px;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
  }

  .hero-card__inner {
    width: 191px;
    text-align: center;
  }

  .hero-card__inner p {
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-card__inner span {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 0;
  }

  /* 71:67 — expert, y=1198, 191×194 */
  .expert {
    position: absolute;
    top: 1030px;
    left: calc(50% + 5.5px);
    width: 191px;
    margin: 0 !important;
    transform: translateX(-50%);
    align-items: center !important;
    text-align: center !important;
    gap: 22px;
    z-index: 4;
  }

  .expert__name {
    position: relative;
    width: 191px;
    height: 61px;
    align-items: center !important;
    text-align: center !important;
    gap: 0;
  }

  .expert__first,
  .expert__last {
    position: absolute;
    left: 0;
    width: 100%;
  }

  .expert__first {
    top: 0;
  }

  .expert__last {
    top: 30px;
    margin-top: 0;
  }

  .expert__exp {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #dfdfdf;
  }

  .expert__badge-desktop {
    display: none;
  }

  .expert__badge-mobile {
    display: inline;
  }

  .hero__banks {
    display: none;
  }
}

@media (min-width: 1025px) {
  .hero__portrait-mobile-wrap,
  .hero__mobile-grad-wrap {
    display: none;
  }
}
