/* IQ HOUSE — iPad and phone layout */

@media (max-width: 1100px) {
  html.iq-nav-open,
  html.iq-nav-open body {
    overflow: hidden !important;
  }

  .iqNav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .iqNav__bar {
    position: relative;
    width: 100% !important;
    max-width: none !important;
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .iqNav__toggle {
    display: block;
  }

  .iqNav__menu {
    display: none;
    position: fixed;
    top: var(--iq-nav-live, var(--iq-nav-h));
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1190;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: auto;
    margin: 0;
    padding: 8px 8px 96px;
    overflow: auto;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .iqNav.is-open .iqNav__menu {
    display: flex;
  }

  .iqNav__link {
    padding: 18px 16px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 500;
  }

  .iqNav__link.is-active,
  .iqNav__link[aria-current="page"] {
    background: rgba(12, 26, 54, 0.06);
    box-shadow: inset 3px 0 0 #0c1a36;
  }

  .iqNav.is-open .iqNav__cta {
    display: inline-flex;
    position: fixed;
    z-index: 1191;
    right: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 20px;
    height: 48px;
    border-radius: 14px;
  }

  .iqNav__cta {
    display: none;
  }

  .iqNav__logo img {
    width: 48px;
    height: 48px;
  }

  .iqCover {
    align-items: flex-end;
    min-height: calc(100svh - var(--iq-nav-h));
    padding-bottom: 168px;
  }

  .iqCover__img {
    object-position: 70% 40%;
  }

  .iqCover__blend {
    background: linear-gradient(
      180deg,
      rgba(7, 18, 46, 0.18) 0%,
      rgba(7, 18, 46, 0.28) 34%,
      rgba(7, 18, 46, 0.78) 68%,
      rgba(7, 18, 46, 0.94) 100%
    );
  }

  .iqCover__name {
    white-space: normal;
  }

  .iqServices__row,
  .iqHomeArticles,
  .iqDesignGrid,
  .iqGallery,
  .iqAboutPage__valueGrid,
  .iqFooter__grid,
  .iqHomeSteps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iqServices__item,
  .iqServices__item--up {
    height: 340px;
    margin-top: 0;
  }

  .iqServices__pill,
  .iqServices__pill--mid,
  .iqServices__pill--bottom {
    left: 12px;
    width: auto;
    max-width: calc(100% - 24px);
    transform: none;
    white-space: normal;
  }

  .iqServices__pill--bottom {
    bottom: 14px;
  }

  .iqDesignSide {
    position: static;
  }

  .iqDesignCats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .iqDesignCats h2,
  .iqDesignSearch,
  .iqDesignNote {
    width: 100%;
  }

  .iqDesignCats button,
  .iqDesignClear {
    width: auto;
  }

  .iqPage__hero {
    min-height: 260px;
  }

  .iqPage__hero--plain {
    min-height: 0;
  }

  .iqPage__heroImg--banner {
    object-position: 78% center;
  }

  .iqPage__heroShade {
    background: linear-gradient(
      90deg,
      rgba(7, 18, 46, 0.9) 0%,
      rgba(7, 18, 46, 0.62) 42%,
      rgba(7, 18, 46, 0.18) 100%
    );
  }

  .iqPage__lead,
  .iqTrust__quoteLine {
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .iqWhy,
  .iqCover,
  .iqWorks,
  .iqServices,
  .iqTrust,
  .iqHandover,
  .iqHomeBlock,
  .iqFooter {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .iqWhy__inner,
  .iqCover__inner,
  .iqCover__content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .iqWhy__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .iqWhy__title,
  .iqWhy__lead,
  .iqCover__name,
  .iqCover__slogan {
    max-width: 100%;
  }

  .iqTopbar__area {
    display: none;
  }

  .iqWhy__points {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .iqWhy__point,
  .iqWhy__point:first-child {
    border-left: 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .iqWhy__point:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .iqArticleLayout {
    grid-template-columns: 1fr;
  }

  .iqArticleSide {
    position: static;
  }

  .iqContactField input,
  .iqContactField select,
  .iqContactField textarea,
  .iqDesignSearch input,
  .iqArticleSearch input,
  .iqArticleBoard__field input,
  .iqArticleBoard__field select {
    font-size: 16px;
  }
}

@media (max-width: 700px) {
  :root {
    --iq-content-w: min(1180px, calc(100% - 32px));
  }

  .iqTopbar__social {
    display: none;
  }

  .iqTopbar {
    font-size: 11px;
  }

  .iqTopbar__inner {
    width: 100%;
    max-width: none;
    padding: 0 10px;
  }

  .iqTopbar__info {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
  }

  .iqTopbar__info a,
  .iqTopbar__info span {
    gap: 4px;
    letter-spacing: 0;
  }

  .iqTopbar__hours {
    display: list-item;
    margin-left: 0;
    padding-left: 8px;
  }

  .iqTopbar__mark {
    width: 16px;
    height: 16px;
  }

  .iqTopbar__mark img {
    width: 12px;
    height: 12px;
  }

  .iqCover {
    align-items: flex-start;
    min-height: 0;
    padding-top: 68vw;
    padding-bottom: 132px;
  }

  .iqCover__blend {
    background: linear-gradient(
      to bottom,
      rgba(7, 18, 46, 0.05) 0%,
      rgba(7, 18, 46, 0.08) 46%,
      rgba(7, 18, 46, 0.55) 78%,
      #07122e 100%
    );
  }

  .iqPage__hero {
    min-height: 210px;
  }

  .iqPage__hero--plain {
    min-height: 0;
  }

  .iqPage__heroInner,
  .iqPage__wrap,
  .iqArticleLayout,
  .iqFooter__wrap,
  .iqWorks__head,
  .iqServices__board,
  .iqHandover__head,
  .iqHomeBlock__wrap,
  .iqTrust__wrap,
  .iqHomeBlock__wrap--full .iqHomeBlock__head,
  .iqHomeBlock__wrap--full .iqHomeBlock__more {
    width: min(1180px, calc(100% - 32px));
  }

  .iqPage__heroInner {
    padding: 28px 0;
  }

  .iqPage__title {
    font-size: 30px;
  }

  .iqPage__wrap,
  .iqArticleLayout {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .iqCover__brand,
  .iqCover__name {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  .iqCover__name {
    font-size: clamp(30px, 8.4vw, 40px);
  }

  .iqCover__slogan {
    font-size: 14px;
    line-height: 1.65;
  }

  .iqCover__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .iqCover__btn {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    box-sizing: border-box;
  }

  .iqCover__marquee3d {
    inset: 0 0 auto 0;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }

  .iqCover__marqueeStage {
    align-items: center;
    justify-content: flex-end;
    padding-right: 0;
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 54%,
      rgba(0, 0, 0, 0.82) 70%,
      rgba(0, 0, 0, 0.4) 84%,
      rgba(0, 0, 0, 0.08) 94%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 54%,
      rgba(0, 0, 0, 0.82) 70%,
      rgba(0, 0, 0, 0.4) 84%,
      rgba(0, 0, 0, 0.08) 94%,
      transparent 100%
    );
  }

  .iqCover__marqueeFade {
    background: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 48%,
      rgba(7, 18, 46, 0.18) 66%,
      rgba(7, 18, 46, 0.55) 80%,
      rgba(7, 18, 46, 0.88) 92%,
      #07122e 100%
    );
    background-size: 100% 100%;
    background-position: center bottom;
  }

  .iqCover__marqueeTilt {
    height: 148%;
    margin-top: -6%;
    max-width: none;
    gap: 12px;
    transform: translateX(2%) translateY(2%) translateZ(-36px) rotateX(18deg) rotateY(-12deg) rotateZ(18deg);
  }

  .iqMarquee .iqReviewCard,
  .iqMarquee .iqReviewCard--photo {
    width: 46vw;
    height: auto;
    aspect-ratio: 400 / 280;
  }

  .iqReviewGrid .iqReviewCard {
    width: 100%;
    max-width: none;
    height: fit-content;
    aspect-ratio: auto;
    line-height: 0;
  }

  .iqReviewGrid .iqReviewCard img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .iqMarquee {
    height: 100%;
    max-height: none;
    overflow: hidden;
  }

  .iqServices__row,
  .iqHomeArticles,
  .iqDesignGrid,
  .iqGallery,
  .iqReviewGrid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .iqAboutPage__valueGrid,
  .iqFooter__grid,
  .iqHomeSteps,
  .iqFaq,
  .iqContactForm__grid {
    grid-template-columns: 1fr;
  }

  .iqArticleCard__body,
  .iqDesignCard__body {
    padding: 10px 10px 12px;
    gap: 6px;
  }

  .iqArticleCard h3,
  .iqDesignCard h2 {
    font-size: 14px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .iqArticleCard p {
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .iqArticleCard__more {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .iqServices {
    padding: 32px 0 12px;
  }

  .iqServices__item,
  .iqServices__item--up {
    height: auto;
    aspect-ratio: 3 / 4;
    margin-top: 0;
  }

  .iqWorks,
  .iqTrust,
  .iqHomeBlock,
  .iqHandover {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .iqWorks__head,
  .iqHandover__head,
  .iqHomeBlock__head,
  .iqTrust__head {
    margin-bottom: 18px;
  }

  .iqContactForm,
  .iqContactAside {
    padding: 22px 16px 18px;
    border-radius: 18px;
  }

  .iqFaq__item summary {
    font-size: 15px;
    padding: 16px 0;
  }

  .iqFooter {
    padding: 36px 0 24px;
  }

  .iqFooter__grid {
    gap: 22px;
  }

  .iqLightbox {
    padding: 72px 12px 24px;
  }

  .iqLightbox__prev {
    left: 8px;
  }

  .iqLightbox__next {
    right: 8px;
  }

  .iqFloat {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}
