/* ========== TABLET — mobile composition reworked for 769–1024px ========== */

@media (min-width: 769px) and (max-width: 1024px) {
  .page {
    width: 100%;
    max-width: none;
    overflow-x: hidden;
  }

  /* Hero */
  .hero {
    min-height: calc(958px + min(67.2917vw, 646px)) !important;
  }

  .hero__mobile-grad-wrap {
    left: 0;
    width: 100%;
    height: calc(958px + min(67.2917vw, 646px));
    margin-left: 0;
  }

  .hero__mobile-grad {
    left: 0;
    width: 100% !important;
    object-fit: cover;
  }

  .header {
    top: 24px;
    left: 50%;
    width: min(calc(100% - 48px), 720px);
    max-width: none;
    transform: translateX(-50%) !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px 24px;
  }

  .header .logo {
    width: auto;
  }

  .header__contacts {
    width: auto;
    gap: 20px;
  }

  .hero__main {
    top: 168px;
    width: min(calc(100% - 64px), 600px);
    max-width: none;
  }

  .hero__title {
    font-size: 42px;
    letter-spacing: -0.84px;
  }

  .hero__subtitle {
    width: min(100%, 540px);
    margin-left: auto;
    margin-right: auto;
  }

  .hero__left .btn-gold--lg {
    width: 400px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__note {
    width: min(100%, 460px);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cards {
    top: 524px;
    width: min(340px, 100%);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .hero-card,
  .hero-card--light {
    width: 100%;
    height: 158px;
  }

  .hero__portrait-mobile-wrap {
    top: 958px;
    left: 50%;
    width: 100%;
    max-width: none;
    height: min(67.2917vw, 646px);
    margin-left: 0;
    transform: translateX(-50%);
  }

  .hero__mobile-portrait {
    content: url("../images/tablet/hero-founder.webp");
    top: -13.48%;
    left: -33.68%;
    width: 161.15% !important;
    height: 134.53% !important;
    object-fit: fill;
    object-position: center;
  }

  .expert {
    top: 941px;
    left: 50%;
    transform: translateX(calc(-50% - 25vw + 5.5px));
  }

  /* Forms */
  .audit__wrap,
  .guarantees__audit {
    width: min(calc(100% - 64px), 600px) !important;
    max-width: 600px;
  }

  .audit-form,
  .guarantees__form {
    padding: 40px !important;
  }

  .audit-form__content,
  .about__form-body {
    max-width: 520px;
  }

  .audit-form__fields,
  .about__form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
  }

  .audit-form .field,
  .about__form .field,
  .audit-form .field input,
  .about__form .field input {
    height: 72px;
  }

  .audit-form .btn-gold--md,
  .about__form .btn-gold--md {
    grid-column: 1 / -1;
    height: 80px;
  }

  .audit-form__checks,
  .about__form .audit-form__checks {
    margin-top: 0;
  }

  /* About */
  .about.section-gap {
    margin-top: 64px !important;
  }

  .about {
    min-height: 0;
    overflow: hidden;
  }

  .about__top {
    position: relative;
    top: auto;
    left: auto;
    width: min(calc(100% - 64px), 680px);
    max-width: none;
    margin: 0 auto;
    transform: none;
    overflow: visible;
  }

  .about__quote h2 {
    font-size: 36px;
    letter-spacing: -0.72px;
  }

  .about__quote p {
    max-width: 620px;
    margin: 0 auto;
    font-size: 18px;
  }

  .about__task {
    width: min(100%, 520px);
    height: 166px;
    margin: 8px auto 0;
  }

  .about__task-body {
    top: 32px;
    left: 50%;
    width: min(calc(100% - 64px), 420px);
    transform: translateX(-50%);
  }

  .about__portrait-mobile-wrap {
    position: relative;
    top: auto;
    left: 50%;
    width: min(100%, 500px);
    height: 480px;
    margin: 24px 0 0;
    transform: translateX(-50%);
    z-index: 1;
  }

  .about__dark {
    --tablet-founder-photo-height: clamp(592px, 77vw, 739px);
    position: relative !important;
    z-index: 2;
    height: auto;
    min-height: 0 !important;
    margin-top: -24px !important;
    padding: 72px 0 calc(var(--tablet-founder-photo-height) + 56px) !important;
    overflow: hidden;
    background: #6f6054;
    border-radius: 24px 24px 0 0 !important;
  }

  .about__dark-mobile-bg {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .about__dark-fill {
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .about__dark-fade-wrap {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--tablet-founder-photo-height);
    margin-left: 0;
    transform: none;
  }

  .about__dark-fade {
    content: url("../images/tablet/about-founder.webp");
    object-fit: cover;
    object-position: center;
  }

  .about__dark-content {
    position: relative !important;
    top: auto;
    left: auto;
    width: min(calc(100% - 64px), 680px);
    max-width: none;
    margin: 0 auto !important;
    padding: 0;
    transform: none;
    gap: 48px;
  }

  .about__dark-block h2,
  .about__situations h3 {
    font-size: 32px;
    letter-spacing: -0.64px;
  }

  .about__tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .about__tile,
  .about__tile:last-child {
    min-height: 94px;
  }

  .about__person {
    top: calc(100% - var(--tablet-founder-photo-height) + 185px);
    right: 15.625%;
    bottom: auto;
    left: auto;
    transform: none;
  }

  .about__bottom {
    position: relative !important;
    top: auto;
    left: 50%;
    width: min(calc(100% - 40px), 720px);
    max-width: 720px;
    min-height: 0;
    height: auto;
    margin: -24px 0 0 !important;
    padding-top: 48px;
    transform: translateX(-50%);
  }

  .about__bottom-inner {
    width: 100%;
    min-height: 0 !important;
    gap: 32px;
  }

  .about__philosophy {
    width: min(calc(100% - 64px), 620px);
    max-width: none;
  }

  .about__philosophy h2 {
    font-size: 32px;
  }

  .about__phone-wrap {
    width: min(100%, 620px) !important;
    max-width: 620px;
    height: auto !important;
    aspect-ratio: 630 / 587;
    overflow: visible;
    border-radius: 0;
  }

  .about__phone--mobile {
    content: url("../images/tablet/about-phone.webp");
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain;
    object-position: center;
  }

  .about__bottom-bg-mobile {
    top: 0;
    left: 50%;
    width: auto !important;
    min-width: 100%;
    height: 100%;
    transform: translateX(-50%);
    object-fit: cover;
    object-position: center top;
  }

  .about__form {
    width: min(calc(100% - 64px), 600px) !important;
    max-width: 600px !important;
    margin: -72px auto 0 !important;
    padding: 40px !important;
  }

  /* Guarantees */
  .guarantees__panel {
    width: min(calc(100% - 32px), 960px);
  }

  .guarantees__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
