/**
 * Front page mobile layout – Figma frame 743:59 (402px).
 * Flexbox only; no absolute positioning in this breakpoint.
 */

@media (max-width: 860px) {
  .gamed-home {
    overflow-x: clip;
  }

  .gamed-home .gamed-container {
    --gamed-container-pad: 14px;
    width: 100%;
    max-width: var(--gamed-header-mobile-shell-max, 402px);
    margin-inline: auto;
  }

  /* Hero: padding tylko w site-header.css (20px), nie na owince */
  .gamed-home .gamed-hero .gamed-container {
    padding-inline: 0;
  }

  .gamed-home .gamed-services .gamed-container,
  .gamed-home .gamed-why .gamed-container,
  .gamed-home .gamed-phone-cta .gamed-container,
  .gamed-home .gamed-doctors .gamed-container {
    padding-inline: var(--gamed-container-pad, 14px);
  }

  /* —— Hero (content height; Figma frame ~590px without forced empty space) —— */
  .gamed-home .gamed-hero {
    min-height: 0;
    height: auto;
    position: relative;
    overflow: hidden;
  }

  .gamed-home .gamed-hero .gamed-container {
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .gamed-home .gamed-hero-image {
    display: none;
  }

  .gamed-home .gamed-hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    flex: 0 0 auto;
    padding: 0;
  }

  .gamed-home .gamed-hero-copy {
    position: static;
    width: 100%;
    max-width: 374px;
    margin: 0 auto;
    padding: 20px 14px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .gamed-home .gamed-hero-copy h1 {
    margin: 0;
    width: 100%;
    font-size: 64px;
    font-weight: 700;
    line-height: normal;
  }

  .gamed-home .gamed-hero-copy p {
    margin: 0;
    width: 100%;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
  }

  .gamed-home .gamed-hero-copy .gamed-pill-btn {
    margin: 0;
    min-width: 163px;
    width: auto;
  }

  /* —— Services —— */
  .gamed-home .gamed-services {
    padding: 94px 0;
  }

  .gamed-home .gamed-services-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
    width: 100%;
    max-width: none;
  }

  .gamed-home .gamed-service-card {
    width: 100%;
    max-width: 338px;
    min-height: 0;
    flex-shrink: 0;
  }

  .gamed-home .gamed-service-card h2 {
    font-weight: 700;
    text-transform: capitalize;
  }

  /* —— Why (copy, then image) —— */
  .gamed-home .gamed-why-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }

  .gamed-home .gamed-why-copy {
    order: 1;
    width: 100%;
    max-width: 374px;
    margin: 0 auto;
    padding: 33px 0 0;
    text-align: center;
  }

  .gamed-home .gamed-why-image {
    order: 2;
    width: 100%;
    max-width: 639px;
    margin: 0 auto;
  }

  .gamed-home .gamed-why-image img {
    display: block;
    width: 100%;
    height: auto;
  }

  .gamed-home .gamed-why-copy h2 {
    margin: 0 0 13px;
    font-size: 48px;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
  }

  .gamed-home .gamed-why-copy ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 333px;
    margin: 0 auto;
    gap: 0;
  }

  .gamed-home .gamed-why-copy li {
    width: 100%;
    min-height: 69px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    padding: 12px 0;
  }

  .gamed-home .gamed-why-copy li img {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
  }

  .gamed-home .gamed-why-copy li span {
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    text-align: left;
  }

  /* —— Phone CTA (273px) —— */
  .gamed-home .gamed-phone-cta {
    min-height: 273px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gamed-home .gamed-phone-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    width: 100%;
    max-width: 388px;
    padding: 0;
    text-align: center;
  }

  .gamed-home .gamed-phone-grid h2 {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: normal;
  }

  .gamed-home .gamed-phone-link {
    margin: 0;
    width: 100%;
    max-width: 388px;
    height: auto;
    min-height: 50px;
    padding: 8px 12px;
    gap: 6px;
    justify-content: center;
    font-size: clamp(22px, 5.5vw, 36px);
    font-weight: 700;
    box-sizing: border-box;
  }

  .gamed-home .gamed-phone-link img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .gamed-home .gamed-phone-grid p {
    margin: 0;
    width: 100%;
    max-width: 349px;
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    white-space: pre-wrap;
  }

  /* —— Doctors —— */
  .gamed-home .gamed-doctors {
    padding: 46px 0 0;
    min-height: 0;
  }

  .gamed-home .gamed-doctors .gamed-container {
    max-width: 404px;
    padding-inline: 12px;
  }

  .gamed-home .gamed-doctors-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 43px;
    min-height: 0;
  }

  .gamed-home .gamed-doctors-copy {
    width: 100%;
    max-width: 380px;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .gamed-home .gamed-doctors-copy h2 {
    margin: 0;
    width: 100%;
    font-size: 48px;
    font-weight: 700;
    line-height: normal;
  }

  .gamed-home .gamed-doctors-copy p {
    margin: 0;
    width: 100%;
    max-width: 380px;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
  }

  .gamed-home .gamed-doctors-copy .gamed-pill-btn {
    margin: 0;
    min-width: 191px;
  }

  .gamed-home .gamed-doctors-image {
    width: 100%;
    max-width: 496px;
    margin: 0;
  }

  .gamed-home .gamed-doctors-image img {
    display: block;
    width: 100%;
    height: auto;
  }

}

@media (max-width: 360px) {
  .gamed-home .gamed-hero-copy h1 {
    font-size: clamp(40px, 12vw, 64px);
  }

  .gamed-home .gamed-why-copy h2,
  .gamed-home .gamed-doctors-copy h2 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .gamed-home .gamed-phone-link {
    font-size: clamp(20px, 5vw, 32px);
    padding: 10px 12px;
  }

  .gamed-home .gamed-pill-btn {
    width: 100%;
    max-width: 280px;
  }
}
