@media (max-width: 992px) {
  /*------Hero------*/

  body {
    overflow-x: hidden;
  }
  .hero-video {
    position: relative;
    width: auto;
    height: 460px;
    overflow: hidden;
    border-radius: 16px;
  }

  .bygg,
  .service {
    margin-top: 158px;
  }

  /*features*/
  .fastigheter-bild,
  .bygg-bild-container {
    position: relative;
    width: auto;
    height: 450px;
    overflow: hidden;
    border-radius: 8px;
  }

  .carousel-frame {
    position: relative;
    display: inline-block;
    width: 300px;
  }

  .footer-cl {
    margin-left: 72px;
    margin-right: 51px;
  }
  /*--------Fastigheter page------*/

  .hero-text {
    font-size: 40px;
    color: #fff;
  }

  .hero-text-fastigheter {
    font-size: 16px;
    max-width: 600px;
    min-width: 600px;
    background: transparent;
    background-color: transparent;
    color: #fff;
    line-height: 1.6;
  }

  .recension {
    display: none;
  }

  .heading,
  .framtiden {
    font-size: 54px;
    background: transparent;
    background-color: transparent;
    color: #fff;
  }

  .hero-fastigheter {
    min-height: 90vh;
    background-image:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.58) 60%,
        rgba(0, 0, 0, 0.35) 100%
      ),
      url("nisab_bilder/fast_bild1.png");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    margin-top: 0;
    min-height: 550px;
  }

  .right {
    display: none;
  }

  .left {
    background: transparent;
    background-color: transparent;
    margin-top: 12px;
  }

  .under-heading {
    background: transparent;
    background-color: transparent;
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .under-heading1 {
    background: transparent;
    background-color: transparent;
    color: #fff;
  }

  .under-heading2 {
    color: #fff;
    background: transparent;
    background-color: transparent;
    padding: 4px;
    background-color: #b62f3b;
    border-radius: 4px;
    align-self: center;
    justify-self: center;
  }

  .tjhead {
    font-size: 20px;
  }

  .tjtext {
    font-size: 16px;
  }

  .process-card {
    min-width: 250px;
    max-width: 250px;
    max-height: 250px;
    min-height: 250px;
  }

  .process-card p {
    display: none;
  }
  .prcr4 {
    margin-left: 84px;
  }

  .prcr1 {
    margin-right: 84px;
  }

  .hero-button {
    min-width: 170px;
    justify-self: center;
    text-align: center;
    text-justify: center;
  }

  /*----------------------*/
  /*-----Bygg Entreprenad page-----*/
  /*----------------------*/

  /*-----Bygg Entreprenad her-----*/

  .hero-bygg {
    min-height: 90vh;
    background-image:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.58) 60%,
        rgba(0, 0, 0, 0.35) 100%
      ),
      url("nisab_bilder/bygg-hero.png");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    margin-top: 0;
    min-height: 550px;
  }

  .right-bygg {
    display: none;
  }

  .hero-text-bygg {
    font-size: 16px;
    max-width: 600px;
    min-width: 600px;
    background: transparent;
    background-color: transparent;
    color: #fff;
    line-height: 1.6;
  }

  .buttons {
    background: transparent;
  }

  .projekt-button {
    background: transparent;
    padding: 12px;
    background-color: #b62f3b;
    border-radius: 8px;
    color: #fff;
  }

  .projekt-icon {
    background: transparent;
    color: #fff;
  }

  .projekt-card {
    max-width: 300px;
    min-width: 300px;
    overflow: hidden;
    min-height: 600px;
  }

  .projekt-cards {
    display: flex;
    flex-direction: row;
    gap: 18px;
    align-items: center;
    justify-content: center;
  }

  .card-text {
    font-size: 16px;
  }

  .omoss-hero {
    min-height: 90vh;
    background-image:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72) 100%,
        rgba(0, 0, 0, 0.58) 60%,
        rgba(0, 0, 0, 0.35) 0%
      ),
      url("nisab_bilder/omosshero.png");

    background-size: cover;
    background-position: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 56px 32px;
    margin: 0;
    min-height: 550px;
    overflow-x: hidden;
  }

  .right-hero,
  .hero-image-omoss {
    display: none;
  }

  .left-hero {
    width: 100%;
    max-width: 760px;
    background: transparent;
    align-items: flex-end;
    margin-right: 0;
    margin-left: 0;
    position: relative;
    left: 100px;
  }

  .head-head,
  .heading,
  .under-heading1,
  .under-heading2,
  .hero-text {
    color: #fff;
  }

  .head-head {
    background: transparent;
    color: #fff;
    max-width: 600px;
    text-align: right;
  }

  .hero-text-omoss {
    background: transparent;
    color: #fff;
    padding: 8px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 8px;
  }

  .heading {
    background: transparent;
  }

  .heading1,
  .heading2 {
    background: transparent;
  }

  .heading2 {
    background: transparent;
    color: #fff;
    padding: 5px;
    background-color: #b62f3b;
    border-radius: 4px;
  }

  .omoss-cards {
    margin-top: 72px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
    margin-left: 108px;
    margin-right: 108px;

    column-gap: 18px;
  }
  .omoss-card {
    min-width: 0;
    max-width: none;
  }

  .hist-card p {
    max-width: 150px;
  }

  .värde-card p {
    max-width: 150px;
  }

  .värde-cards {
    gap: 12px;
  }

  .värde-card {
    max-width: 200px;
    min-width: 200px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .värde-line {
    display: none;
  }

  .main {
    display: flex;
    flex-direction: column;
    max-width: 992px;
  }

  .head1 {
    color: #111;
  }

  .boende {
    grid-template-columns: 1.5fr 1fr;
    max-width: 450px;
    min-width: 450px;
  }

  .boende-left {
    margin-left: 158px;
  }

  .heading-bo {
    font-size: 36px;
  }

  .lght17 {
    font-size: 18px;
  }

  .hero-text-bygg-bo {
    font-size: 16px;
    margin-right: 108px;
    max-width: 450px;
    min-width: 450px;
  }

  .hero-image-bo {
    width: 500px;
    object-fit: cover;
    transform: translateX(-70px);
  }

  .näsby-btn {
    margin-top: 100px;
  }

  .ledig {
    font-size: 16px;
  }

  .ledig-btn {
    margin-top: 65px;
  }

  .cta {
    padding: 48px;
  }

  .logo {
    height: 84px;
  }

  .service-card {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: flex-start;
  }

  .heading-tjänster {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }
  .logo {
    height: 72px;
  }
  body {
    margin-left: 0;
    overflow-x: hidden;
  }

  .featuers {
    margin-left: 72px;
    margin-right: 72px;
  }

  /* Make hero use full width on small screens and remove page margins */
  .hero {
    min-height: 90vh;
    background-image:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.58) 60%,
        rgba(0, 0, 0, 0.35) 100%
      ),
      url("nisab_bilder/heroforoprimar.webp");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    margin-top: 0;
    min-height: 550px;
    width: 100%;
    margin-left: 0; /* override desktop margins */
    margin-right: 0;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  /* Allow left column to shrink so content fits inside viewport */
  .left {
    min-width: 0;
    padding: 16px 0;
    margin-left: 72px;
  }

  /* Make hero text, sub-text and button match desktop outlook */
  .hero-text,
  .hero-text h3 {
    background: transparent;
    background-color: transparent;
    font-size: 54px; /* match desktop */
    line-height: 1.3;
    font-weight: 600;
  }

  .trejderad {
    color: #b62f3b;
    padding: 12px;
    border-radius: 8px;
    background-color: #fafafa;
  }

  .forstarad,
  .andrarad {
    color: #fafafa;
  }

  .sub-text,
  .sub-text p {
    background: transparent !important;
    background-color: transparent !important;
    color: #fff !important;
    font-size: 18px;
    line-height: 1.6;
    max-width: 420px;
    min-width: 0;
  }

  /* Ensure the hero contact button keeps desktop styling */
  .contact-btn-hero {
    align-self: flex-start;
    margin-right: 48px;
    background: transparent;
  }

  /* Make hero button semi-transparent so image is visible behind it */
  .button-hero {
    display: inline-block;
    border-radius: 12px;
    padding: 14px 28px;
    background-color: #b62f3b;
    color: #fff;
    border: none;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.3s ease;
    text-decoration: none;
  }

  .fastigheter {
    margin-left: 72px;
    margin-left: 72px;
  }
  .bygg-bild,
  .fast-bild {
    height: 350px;
    width: 200px;
    border-radius: 8px;
  }

  .serv-bild {
    min-height: 400px;
  }

  .carousel-frame {
    max-height: 350px;
    max-width: 200px;
  }
  .serivce,
  .bygg {
    margin-top: 84px;
  }
  .right-fast {
    min-width: 340px;
  }

  .hero-fast {
    font-size: 28px;
  }

  .text-fast {
    font-size: 16px;
  }

  .tjänst-card {
    min-width: 240px;
    max-width: 240px;
  }

  .tjänster {
    margin-left: none;
  }

  .footer-cl {
    grid-template-columns: 1fr 1fr;
  }

  /* Tablet: transform horizontal history into a vertical timeline at <=768px */
  .historia {
    margin-left: 40px;
    margin-right: 40px;
    margin-top: 48px;
  }

  /* hide the desktop horizontal line */
  .hist-line {
    display: none !important;
  }

  .hist-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    position: relative !important;
    padding-left: 72px !important; /* space for the vertical line and dots */
  }

  /* vertical line running through the timeline */
  .hist-cards::before {
    content: "";
    position: absolute;
    left: 36px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background-color: #4e4e4e;
    border-radius: 2px;
    z-index: 1;
  }

  .hist-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    position: relative !important;
    z-index: 2; /* put cards above the vertical line */
  }

  /* place the red dot on the vertical line */
  .hist-card .dot {
    position: absolute !important;
    left: 36px !important; /* centers dot over the vertical line */
    top: 8px !important;
    transform: translateX(-50%); /* ensure proper centering */
    height: 14px !important;
    width: 14px !important;
    border-radius: 50% !important;
    background-color: #b62f3b !important;
    box-shadow: 0 0 0 3px rgba(182, 47, 59, 0.05);
  }

  /* content sits to the right of the line */
  .hist-card h2 {
    margin: 0 !important;
    margin-left: 48px !important;
    font-size: 22px !important;
    color: #b62f3b !important;
    min-width: 0;
  }

  .hist-card p {
    margin: 0 !important;
    margin-left: 48px !important;
    color: #4e4e4e !important;
    max-width: none !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  nav.site-nav {
    padding: none;
  }

  .tjänst-cards {
    align-self: center;
    transform: translateX(-102px);
  }

  .right-bygg-bo {
    display: none;
  }

  .boende-left {
    margin-left: 48px;
  }

  .projekt {
    display: flex;
    flex-direction: column;
  }

  .design-projekt {
    min-width: 672px;
    align-self: center;
  }

  .process-fastigheter {
    display: none;
  }

  .cta h3 {
    font-size: 36px;
  }

  .cta {
    display: block;
    align-items: flex-start;
    text-align: center;
  }

  .tjänst-header h3 {
    max-width: 400px;
    text-align: center;
  }

  .tjänst-header p {
    max-width: 550px;
  }

  .tjänst-card {
    min-width: 550px;
  }

  .projekt-cards {
    display: flex;
    flex-direction: column;
  }

  .projekt-card {
    min-width: 400px;
  }

  .projekt-foto-before {
    transform: translateX(-100px);
  }

  .forcards {
    align-self: center;
    transform: translateX(-87px);
  }

  .for-card {
    min-width: 230px;
  }

  .hero-button {
    text-align: center;
  }

  .omoss-hero {
    display: block;
  }

  .left-hero {
    align-items: flex-start;
    left: 0;
  }

  .head-head {
    text-align: start;
    font-size: 32px;
  }

  .värde-cards {
    min-width: 674px;
    align-self: center;
    transform: translateX(-61px);
  }
}

/* Ensure desktop navigation (>=481px) layout: logo left, links centered, contact button right */
@media (min-width: 481px) {
  nav.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  .nav-toggle {
    display: none !important;
  }

  /* Center the main links */
  .nav-link {
    display: flex !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    gap: 28px !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .nav-link a.link {
    color: inherit !important;
  }

  /* Hide the duplicate Kontakt link inside nav-link on desktop; keep the contact button at the end */
  .nav-link a.link[href$="kontakt.html"] {
    display: none !important;
  }

  .contact-btn {
    display: block !important;
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  /* Mobile navigation */

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }
  nav {
    position: relative;
    padding: 12px 16px;
    align-items: center;
    display: flex;
    justify-content: space-between;
    background: transparent;
  }

  .hero-text-fastigheter {
    max-width: 330px;
  }

  .logo img,
  .logo {
    height: 72px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 60;
  }

  .nav-toggle:focus {
    outline: 2px solid #b62f3b;
    outline-offset: 2px;
  }

  .hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 2px;
    position: relative;
  }

  .hamburger::before,
  .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 2px;
  }

  .hamburger::before {
    top: -7px;
  }

  .hamburger::after {
    top: 7px;
  }

  /* Hide links by default on small screens */

  .nav-link {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #fff;
    padding: 16px;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 50;
  }

  .nav-link a.link {
    color: #111;
    text-decoration: none;
    padding: 8px 4px;
  }

  .contact-btn {
    display: none; /* move contact into nav links on mobile */
  }

  /* When nav is open, show links */

  nav.nav-open .nav-link {
    display: flex;
  }

  .left-fast {
    display: none;
  }

  .fastigheter {
    transform: translateX(-42px);
  }

  .bygg {
    transform: translateX(-75px);
  }

  .logo-footer {
    margin-left: 0;
  }

  .tjänst-cards {
    display: flex;
    flex-direction: column;
    margin-left: 55vh;
    margin-right: 48vh;
    transform: translateX(-4vh);
  }

  .boende {
    transform: translateX(-38vh);
  }

  .cta {
    margin-left: 66px;
  }

  .tjänst-card {
    min-width: 370px;
  }

  .heading,
  .framtiden {
    font-size: 36px;
  }

  .hero-text-fastigheter p {
    max-width: 300px;
  }

  .hero-image-bo {
    display: none;
  }

  .boende-left {
    width: calc(100% - 40px);
    max-width: 340px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    grid-area: text;
  }

  .boende-left h3,
  .boende-left p {
    max-width: 100%;
  }

  .hero-text-bygg-bo {
    width: 100%;
    max-width: 100%;
  }

  .buttons-bo {
    width: 100%;
  }

  .boende-btn {
    max-width: 100%;
  }

  .right-bygg-bo {
    display: none;
  }

  /*-----------Ny css boende----*/

  .boende {
    display: block;
    width: 100%;
    margin: 30px 0 80px;
  }

  .boende-left {
    width: calc(100% - 40px);
    max-width: 340px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .right-bygg-bo {
    display: none;
  }

  .heading-projekt {
    font-size: 36px;
  }

  .projekt {
    display: flex;
    flex-direction: column;
  }

  .design-projekt {
    min-width: 350px;
    align-self: center;
  }

  .process-fastigheter {
    display: none;
  }

  .text-cta h3 {
    font-size: 32px;
  }

  .cta {
    display: block;
    min-width: 350px;
    align-self: center;
    transform: translateX(-42px);
  }

  .footer-cl {
    grid-template-columns: 1fr;
  }

  /* Mobile: transform horizontal history into a vertical timeline */

  .historia {
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 40px;
  }

  /* hide the desktop horizontal line */

  .hist-line {
    display: none !important;
  }

  .hist-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    position: relative !important;
    padding-left: 48px !important; /* space for the vertical line and dots */
  }

  /* vertical line running through the timeline */

  .hist-cards::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background-color: #4e4e4e;
    border-radius: 2px;
    z-index: 1;
  }

  .hist-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    position: relative !important;
    z-index: 2; /* put cards above the vertical line */
  }

  /* place the red dot on the vertical line */
  .hist-card .dot {
    position: absolute !important;
    left: 18px !important; /* centers dot over the vertical line */
    top: 6px !important;
    transform: translateX(-50%); /* ensure proper centering */
    height: 12px !important;
    width: 12px !important;
    border-radius: 50% !important;
    background-color: #b62f3b !important;
    box-shadow: 0 0 0 3px rgba(182, 47, 59, 0.05);
  }

  /* content sits to the right of the line */
  .hist-card h2 {
    margin: 0 !important;
    margin-left: 28px !important;
    font-size: 20px !important;
    color: #b62f3b !important;
    min-width: 0;
  }

  .hist-card p {
    margin: 0 !important;
    margin-left: 28px !important;
    color: #4e4e4e !important;
    max-width: none !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  /*HERO-INDEX OVERWRITE*/
  .hero-text {
    font-size: 36px;
    background: transparent;
  }
  .forstarad,
  .andrarad {
    color: #fff;
    background: transparent;
  }
  .tredjerad {
    color: #b62f3b;
    background: transparent;
  }
  .left {
    margin-left: 24px;
  }
  .features {
    width: 100%;
    margin-right: 24px;
  }

  /*HERO-FASTIGHETER OVERWRITE*/
  .left {
    margin-right: 24px;
  }
  .hero-text-fastigheter {
    max-width: 100%;
    min-width: 0;
  }

  /*FASTIGHETER-TJÄNSTER OVERWRITE*/
  .hero-tjänster {
    max-width: 100%;
    min-width: 0;
    margin-left: 24px;
    margin-right: 24px;
  }

  .tjänst-card {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .tjänst-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;

    width: calc(100% - 32px);
    margin: 0 auto 48px;
    transform: none;
  }
  /*FASTIGHETER_BOENDE OVERWRITE*/
  .boende {
    width: calc(100% - 32px);
    margin: 32px auto 64px;
    transform: none;
    min-width: 0;
  }
  .boende-left {
    width: calc(100% - 32px);
    max-width: 340px;
    min-width: 0;
    margin: 0 auto;
    transform: none;
  }
  .boende-left {
    width: calc(100% - 32px);
    max-width: none;
    min-width: 0;

    margin: 0 auto;
    padding: 0;

    box-sizing: border-box;
  }

  .hero-text-bygg-bo {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .hero-text-bygg-bo {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .under-heading-bo {
    font-size: 14px;
  }
  .boende-btn {
    margin-top: 0;
  }
  /*LEDIGA BOSTÄDER*/
  .underheading-projekt,
  .heading-projekt,
  .text-projekt {
    width: calc(100% - 32px);
    min-width: 0;
    margin-left: 16px;
    margin-right: 16px;
  }
  .projekt {
    width: calc(100% - 32px);
    min-width: 0;
    margin-left: 16px;
    margin-right: 16px;
  }

  /*CTA FASTIGHETER*/
  .cta {
    width: calc(100% - 32px);
    min-width: 0;
    max-width: none;

    margin: 32px 0 64px;
    padding: 32px 16px;

    transform: none;
    box-sizing: border-box;
    text-align: center;
    margin-left: 16px;
    margin-right: 16px;
  }

  .text-cta {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
  }
  /*-------------*/
  /*BYGG & ENTREPRENAD OVERWRITE*/
  /*-------------*/

  /*HERO-BYGG*/
  .hero-bygg {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 48px 16px;
    transform: none;
    box-sizing: border-box;
  }

  .hero-bygg .left {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .hero-text-bygg {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
  }

  .hero-bygg .heading,
  .hero-bygg .framtiden {
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.08;
  }
  /*BYGG TJÄNSTER*/
  .tjänst-header {
    width: 100%;
    min-width: 0;
    max-width: none;

    margin: 48px 0 24px;
    padding: 0 16px;

    box-sizing: border-box;
    text-align: center;
    align-items: center;
  }

  .tjänst-header h2 {
    width: 100%;
    max-width: none;
    margin: 0 0 16px;
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.15;
  }
  .tjänst-header h2 {
    font-size: 28px;
  }

  .tjänst-header p {
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .tjänster-bygg {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .tjänst-card {
    width: 100%;
    min-width: 0;
    max-width: none;

    margin: 0 0 16px;
    padding: 24px;
    box-sizing: border-box;

    transform: none;
  }

  .text-card {
    width: 100%;
    min-width: 0;
  }

  .text-card p {
    width: 100%;
    max-width: none;
  }
  .tjänst-icon-bygg {
    display: none;
  }
  /*REFERENS PROJEKT*/
  .referens-projekt {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 48px 0;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .hero-projekt {
    width: 100%;
    margin: 0 0 24px;
    text-align: center;
  }

  .hero-projekt h2,
  .head-text {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-projekt h2 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.15;
  }

  .projekt-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .projekt-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 0;
    max-height: none;
    margin: 0;
    transform: none;
    box-sizing: border-box;
  }

  .projekt-foto-before,
  .foto-inst {
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: none;
  }

  .projekt-foto-before {
    aspect-ratio: 400 / 294;
  }

  .bio-projekt {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }

  .badge {
    flex-wrap: wrap;
  }
  .projekt-card {
    align-items: stretch;
    overflow: hidden;
  }

  .carousel-frame,
  .projekt-foto-before {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .projekt-foto-before {
    height: auto;
    aspect-ratio: 400 / 294;
  }

  .projekt-foto-before .foto-inst {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .carousel-frame .carousel-dots {
    left: 50%;
  }

  /*-----------*/
  /*FASTIGHETSSERVICE*/
  /*-----------*/

  /*SERVICE CARDS*/
  .service-cards {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    max-width: none;

    margin: 0 0 16px;
    padding: 24px;
    box-sizing: border-box;

    transform: none;
  }

  .forcards {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    max-width: none;

    margin: 0 0 16px;
    padding: 24px;
    box-sizing: border-box;

    transform: none;
  }

  /*---------------*/
  /*OM OSS OVERWRITE*/
  /*---------------*/

  /*OM OSS CARDS*/
  .omoss-cards {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    max-width: none;

    margin: 0 0 16px;
    padding: 24px;
    box-sizing: border-box;

    transform: none;
  }

  /*HISTORA*/
  .historia,
  .värde,
  .värde-card {
    width: 100%;
    min-width: 0;
    max-width: none;

    margin: 0 0 16px;
    padding: 24px;
    box-sizing: border-box;

    transform: none;
  }

  .heading-h h2 {
    font-size: 28px;
  }
  .heading-h {
    gap: 14px;
  }

  .värde-cards {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    max-width: none;

    margin: 0 0 16px;
    padding: 24px;
    box-sizing: border-box;

    transform: none;
    gap: 4px;
  }

  .värde-card p {
    width: 100%;
    min-width: 0;
    max-width: none;

    box-sizing: border-box;

    transform: none;
  }

  /*--------------*/
  /*KONTAKTA OSS OVERWRITE*/
  /*--------------*/
  .kontakt-hero {
    width: 100%;
    min-width: 0;
    max-width: none;

    margin: 0 0 16px;
    padding: 24px;
    box-sizing: border-box;

    transform: none;
  }

  .head-head-kont {
    font-size: 18px;
  }

  .kontakt-hero h1 {
    font-size: 40px;
  }

  .main {
    width: 100%;
    min-width: 0;
    max-width: none;

    margin: 0 0 16px;
    padding: 24px;
    box-sizing: border-box;

    transform: none;
  }

  /*STICKY NAVBAR*/
  nav.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
  }

  .nav-link {
    top: 100%;
  }
}

nav,
nav.site-nav {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  background-color: #fff;
}
