.s244-actions .home-demo-short,
.s244-actions .home-contact-short,
.s246-people .person-links svg {
  display: none;
}

@media (max-width: 760px), (max-width: 960px) and (max-height: 500px) and (pointer: coarse) {
  .s246-home {
    --home-gutter: clamp(16px, 4.8vw, 32px);
  }
  .s244-stage:has(.s244-photo) { background: linear-gradient(to top, #f5eee3 5px, #172b20 5px); }
  .s244-stage .s244-copy {
    padding: 23px var(--home-gutter) 14px;
  }
  .s244-stage h1 {
    overflow-wrap: normal;
    font-size: clamp(30px, 7.8vw, 44px);
    line-height: 1.07;
  }
  .s244-intro {
    line-height: 1.43;
    margin-bottom: 16px;
  }
  .s244-actions { gap: 6px 10px; }
  .s244-actions .home-demo-long { display: none; }
  .s244-actions .home-demo-short { display: inline; }
  .s244-actions a,
  .s244-actions a:first-child {
    justify-content: center;
    padding: 8px 13px;
    min-height: 44px;
    font-size: .9375rem;
    line-height: 1.2;
    border-radius: 6px;
  }
  .s244-actions a:first-child {
    border: 1px solid #95a89a;
    color: #fffbf1;
    background: transparent;
  }
  .s244-actions .home-quote {
    background: #fbf6e9;
    color: #18382d;
    text-decoration: underline;
    text-underline-offset: .2em;
  }
  .s244-actions .home-contact-short {
    display: inline-flex;
    padding-inline: 4px;
    font-weight: 600;
  }
  .s244-stage .s244-photo {
    height: clamp(148px, 51vw, 280px);
    object-position: right 62%;
  }
  .s244-choice.door-packages {
    padding: 14px var(--home-gutter) 20px;
  }
  .s246-inner { width: calc(100% - 2 * var(--home-gutter, 18px)); }
  .s246-home .s246-split {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 32px;
    gap: 20px;
  }
  .s246-home .s246-steps li { padding-block: 14px; }
  .s246-home .s246-steps li::before { top: 16px; }
  .s246-home .s246-contact-copy { display: contents; }
  .s246-contact .s246-people {
    display: grid;
    gap: 10px;
    grid-row: auto;
    scroll-margin-top: 12px;
  }
  #kontakt .s48-form-wrap { min-width: 0; padding-top: 6px; }
  #kontakt .interest-form { padding: clamp(14px, 4vw, 22px); scroll-margin-top: 8px; }
  #kontakt .interest-form :is(input, textarea) { font-size: 1rem; min-height: 44px; }
  .s246-footer nav { gap: 2px 14px; }
  .s246-footer nav a { min-height: 44px; }
}
@media (max-width: 760px), (max-width: 1024px) and (pointer: coarse) {
  .s246-people > .home-person {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 6px 12px;
    padding: 14px 15px 8px;
    background: #fcfdf8;
    border: 1px solid #bac8b8;
    border-radius: 10px;
  }
  .home-person .person-info { display: contents; }
  .s246-people .home-person img {
    width: 52px;
    height: 52px;
    grid-column: 1;
    grid-row: 1 / 3;
    background: #dce6d9;
  }
  .s246-people .home-person h3 {
    grid-column: 2;
    align-self: end;
    font-size: 1.125rem;
  }
  .s246-people .home-person p {
    grid-column: 2;
    align-self: start;
    margin: 0;
    font-size: .875rem;
    line-height: 1.35;
  }
  .home-person .person-links {
    grid-column: 1 / -1;
    display: grid;
    margin-top: 4px;
    border-top: 1px solid #d9e1d5;
  }
  .home-person .person-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    width: 100%;
    margin: 0;
    color: #21493c;
    line-height: 1.35;
    font-size: 1rem;
    text-underline-offset: .2em;
  }
  .s246-people .person-links svg {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 530px) and (max-width: 760px) {
  .s246-contact .s246-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 761px) and (max-width: 1024px) and (min-height: 501px) and (pointer: coarse) {
  .s244-stage .s244-copy { width: 45cqw; }
  .s244-intro { font-size: max(1rem, 1.72cqw); line-height: 1.36; max-width: 36cqw; }
  .s244-actions { flex-wrap: wrap; gap: 4px 14px; }
  .s244-actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; }
  .s244-actions .home-contact-short { display: none; }
  body:has(.s244-stage) > header .header-actions :is(.s244-services, .header-entry[href="/logga-in"]) { min-height: 44px; }
  .s246-contact .s246-people { display: grid; gap: 10px; }
  .s246-contact .s246-split { gap: 28px; }
  .s246-contact .interest-form :is(input, textarea) { min-height: 44px; font-size: 1rem; }
  .s246-contact .interest-fields { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.s246-home) { scroll-behavior: auto; }
}
