@media (min-width: 768px) {
  .banner-image-first {
    display: none;
  }
}

@media (max-width: 1600px) {
  body {
    --fz-18: 16px;
    --fz-45: 38px;
    --fz-80: 60px;
    --container-width: 1200px;
    --base-font-size: 16px;
  }
  .container {
    padding-inline: 15px;
  }
  .footer-top {
    grid-template-columns: 450px 200px 220px 1fr;
    column-gap: 50px;
  }
  .main-title {
    line-height: 56px;
  }
  .custom-mortgage-content h2 {
    font-size: 40px;
    line-height: 48px;
    margin-bottom: 12px;
  }
  .section-title h2 {
    margin-bottom: 15px;
  }
  .banner-section .container:first-child {
    grid-template-columns: 600px 1fr;
    column-gap: 80px;
  }
  .hm-blog .title,
  .we-offer-title,
  .section-title {
    margin-bottom: 30px;
  }
  .faq-section {
    padding: 80px 60px;
    max-width: 96%;
  }
  .faq-section .container {
    grid-template-columns: 580px 1fr;
    column-gap: 70px;
  }
  .our-vision-content span {
    font-size: 22px;
  }
  .sub-title {
    line-height: 42px;
  }
  .our-vision .container {
    column-gap: 100px;
  }
  .team-title {
    font-size: 120px;
  }
  .team-subtitle {
    font-size: 43px;
  }
  .second-title {
    font-size: 40px;
    line-height: 48px;
  }
  .team-member {
    height: 422px;
  }
  .progress-bar::before {
    max-width: 65%;
  }
}

@media (max-width: 1200px) {
  body {
    --fz-18: 14px;
    --fz-45: 32px;
    --fz-80: 50px;
    --space-100: 80px;
    --base-font-size: 14px;
    --container-width: 1000px;
  }
  .main {
    margin-top: 87px;
  }
  .sub-title {
    line-height: 40px;
  }
  .footer-top {
    grid-template-columns: 300px 170px 200px 1fr;
  }
  .footer-logo {
    padding-right: 0;
  }
  .banner-buttons a {
    width: 205px;
    height: 44px;
    line-height: 44px;
  }
  .tick-list li + li {
    margin-top: 14px;
  }
  .banner-section .container:first-child {
    grid-template-columns: 470px 1fr;
    column-gap: 60px;
  }
  .banner-content p {
    margin: 25px 0 0 0;
  }
  .banner-form textarea {
    height: 160px;
  }
  .banner-form {
    padding: 24px;
    border-radius: 15px;
  }
  .banner-section .map {
    margin-top: 50px;
  }
  .custom-mortgage-content {
    padding: 10px 0 0 35px;
  }

  .custom-mortgage-content h2 {
    font-size: 32px;
    line-height: 42px;
    margin-bottom: 12px;
  }
  .custom-mortgage-content .button {
    height: 44px;
    line-height: 44px;
  }
  .blog-swiper .content .more img {
    width: 17px;
  }
  .swiper-bottom {
    margin-top: 30px;
  }
  .blog-swiper .content p br {
    display: none;
  }
  .blog-swiper .content p {
    margin: 0;
  }
  .banner-form button {
    height: 44px;
    line-height: 44px;
  }
  select.form-field,
  input.form-field {
    height: 44px;
    line-height: 44px;
  }
  .view-all {
    height: 44px;
    line-height: 44px;
    padding: 0 30px;
  }
  .accordion-block {
    padding: 30px;
    border-radius: 20px;
  }
  .tb_rv_banner_wrap {
    margin-bottom: 30px;
  }
  .faq-section {
    padding: 40px;
  }
  .faq-section .container {
    grid-template-columns: 420px 1fr;
    column-gap: 35px;
  }
  .accordion-title {
    font-size: 16px;
  }
  .accordion-item {
    padding-block: 16px;
  }
  .faq-section .view-all {
    margin-top: 30px;
  }
  .faq-section-left p {
    margin: 15px 0 25px 0;
  }
  .our-vision .container {
    column-gap: 40px;
  }
  .our-vision-content h2 {
    margin-bottom: 20px;
  }
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(273px, 1fr));
    gap: 20px;
    margin: 30px 0 20px 0;
  }
  .member-name {
    font-size: 22px;
  }
  .meet-everyone-btn h6 {
    font-size: 22px;
  }
  .hidden-members {
    gap: 20px;
  }
  .our-vision {
    margin-top: 70px;
  }
  .team-title {
    font-size: 100px;
    line-height: 80px;
  }
  .team-subtitle {
    font-size: 37px;
    line-height: 1;
  }
  .team-section {
    margin-top: 70px;
  }
  .form-container {
    padding: 50px;
  }
  .form-container {
    padding: 50px;
  }
  .progress-bar::before {
    max-width: 65%;
  }
  .why-choose .container,
  .our-vision .container,
  .custom-mortgage .container {
    overflow: hidden;
  }
  .home-banner::after {
    background-size: contain;
  }
  .second-title {
    font-size: 32px;
    line-height: 42px;
  }
  .mortgage-calculator-header,
  .mortgage-calculator-body {
    gap: 30px;
  }
}

@media (max-width: 860px) {
  body {
    --fz-45: 32px;
    --fz-80: 40px;
    --space-100: 50px;
  }
  .main-title {
    line-height: 40px;
  }
  .banner-section .container:first-child {
    grid-template-columns: 360px 1fr;
    column-gap: 30px;
  }
  .banner-section .tick-list {
    margin-top: 20px;
  }
  .banner-form button {
    margin-top: 24px;
  }
  iframe {
    height: 340px;
  }
  .footer-top {
    display: flex;
    flex-wrap: wrap;
    row-gap: 30px;
  }
  .footer-links {
    width: 30%;
  }
  .footer-top h3 {
    font-size: 18px;
  }
  .footer-links li + li {
    margin-top: 10px;
  }
  .footer-logo p {
    max-width: 466px;
  }
  .footer-follow img {
    width: 35px;
  }
  .footer-logo {
    width: 100%;
  }
  .accordion-block {
    padding: 20px;
    border-radius: 12px;
  }
  .custom-mortgage::after {
    height: 100%;
  }
  .custom-mortgage {
    padding: 70px 0;
  }
  .custom-mortgage-content h2 {
    font-size: 28px;
    line-height: 34px;
  }
  .blog-list {
    gap: 12px;
  }
  .blog-list-item .content {
    padding: 18px;
  }
  .blog-list-item .content p br {
    display: none;
  }
  .faq-section .container {
    grid-template-columns: 1fr;
    column-gap: 35px;
  }
  .faq-section {
    padding: 15px 0;
    border-radius: 15px;
  }
  .accordion-item:last-child {
    padding-bottom: 0;
  }
  .accordion-item:first-child {
    padding-top: 0;
  }
  .advantage-list-item h4 {
    font-size: 25px;
    line-height: 27px;
  }

  .advantage-content {
    padding: 30px 0 0 40px;
    max-width: 380px;
  }
  .advantage-list {
    padding-left: 0;
  }
  .advantage {
    margin-top: 70px;
  }
  .why-choose .container {
    column-gap: 35px;
  }
  .banner-about .our-vision-content {
    margin-top: 20px;
  }
  .our-vision-content h2 {
    margin-bottom: 20px;
  }
  .banner-buttons a {
    width: 180px;
  }
  .team-header {
    margin-bottom: 30px;
  }
  .team-title {
    font-size: 78px;
    line-height: 64px;
  }
  .team-subtitle {
    font-size: 29px;
  }
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(208px, 1fr));
    gap: 12px;
  }
  .hidden-members {
    gap: 12px;
  }
  .banner-content p {
    margin: 15px 0 0 0;
  }
  .form-container {
    padding: 30px;
    border-radius: 15px;
  }
  .progress-bar {
    margin-bottom: 25px;
  }
  .toggle-btn {
    padding: 10px;
    min-width: 175px;
  }
  .button-group {
    margin-top: 30px;
  }

  .back-button,
  .next-button {
    height: 44px;
    line-height: 44px;
    width: 190px;
  }
  .step3-header h2 {
    font-size: 24px;
    line-height: 23px;
  }
  .result-section {
    flex-wrap: wrap;
    row-gap: 15px;
  }
  .mortgage-calculator-body {
    margin-top: 30px;
  }
  .mortgage-calculator {
    padding: 20px;
    border-radius: 20px;
  }
  .resident-tab {
    height: 44px;
    line-height: 44px;
  }
  .resident-tabs {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 10px;
  }
  .splide__slide {
    width: 33.33% !important;
  }
  .second-title {
    font-size: 25px;
    line-height: 34px;
  }
  .mortgage-calculator-left h3 {
    font-size: 24px;
  }
  .team-member {
    height: 262px;
  }
}

@media (min-width: 768px) {
  .team-mobile {
    display: none;
  }
}

@media (max-width: 767px) {
  body {
    --fz-80: 32px;
  }
  .our-happy .title h2 {
    margin-bottom: 20px;
  }
  .main-title {
    line-height: 34px;
  }
  .banner-section .container:first-child {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }
  .custom-mortgage .container {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 30px;
  }
  .custom-mortgage-content {
    padding: 0;
  }
  .hm-blog,
  .oru-partners,
  .custom-mortgage {
    padding: 50px 0;
  }
  .main {
    margin-top: 71px;
  }
  main br {
    display: none;
  }
  .offer-card-item h5 br {
    display: block;
  }
  .rating-swiper .swiper-slide {
    padding: 14px;
    border-radius: 10px;
  }
  .rating-swiper .heading {
    margin-bottom: 15px;
  }
  .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    padding: 50px 0;
  }
  .advantage {
    grid-template-columns: repeat(1, 1fr);
  }
  .advantage {
    margin-top: 50px;
  }
  .offer-card-item h5 {
    font-size: 22px;
    width: 192px;
    top: 99px;
    left: -62px;
  }
  .why-choose .container {
    grid-template-columns: repeat(1, 1fr);
  }
  .our-vision {
    margin-top: 50px;
  }
  .our-vision .container {
    grid-template-columns: repeat(1, 1fr);
  }
  .team-section {
    padding: 20px;
    margin-top: 50px;
    border-radius: 15px;
  }
  .team-title {
    font-size: 34px;
    line-height: 35px;
  }
  .team-subtitle {
    font-size: 21px;
  }
  .hidden-members {
    grid-template-columns: repeat(1, 1fr);
  }
  .banner-buttons {
    gap: 5px;
  }
  .banner-buttons a {
    width: 152px;
    font-size: 12px;
  }
  .advantage-content {
    padding: 10px;
  }
  .step-circle {
    width: 42px;
    height: 42px;
  }
  .form-container {
    padding: 15px;
    border-radius: 10px;
  }
  .toggle-btn {
    padding: 10px;
    min-width: 166px;
  }
  .toggle-btn.selected::before {
    width: 15px;
    height: 15px;
  }
  .mortgage-calculator-header,
  .mortgage-calculator-body {
    grid-template-columns: repeat(1, 1fr);
  }
  .mortgage-calculator-right {
    padding-top: 0;
  }
  .submit-btn {
    padding: 12px;
    font-size: 14px;
  }
  .splide__slide {
    width: 50% !important;
  }
  .swiper-vertical {
    height: 350px;
    padding-left: 26px;
  }

  /* .vertical-swiper::after,
  .vertical-swiper::before {
    display: none;
  } */

  .vertical-swiper::after {
  }

  .swiper-vertical .swiper-slide{
  height: 110px !important;
  overflow: hidden;

  }

  .vertical-swiper .swiper-pagination {
    margin-left: -35px !important;
    width: 96%;
    height: auto;
    flex-direction: row;
    background: #f5f5f7;
    padding: 10px 20px;
  }
  .why-choose .image .inside img:nth-child(2) {
    width: 200px;
  }
  .why-choose .image .inside img:nth-child(3) {
    left: 170px;
    bottom: 73px;
    max-width: 60px;
  }
  .why-choose .image .inside {
    padding-bottom: 100px;
  }
  .why-choose .container {
    row-gap: 70px;
  }
  .vertical-swiper::after,
  .vertical-swiper::before {
    width: 100%;
    height: 110px;
  }
  .advantage-list-item {
    padding-right: 10px;
  }
  .resident-tabs {
    row-gap: 5px;
    column-gap: 5px;
  }
  .mortgage-calculator-group {
    margin-bottom: 15px;
  }
  .footer-top {
    column-gap: 20px;
    text-align: center;
  }

  .footer-links {
    width: 100%;
  }

  .footer-follow {
    margin: auto;
  }

  .footer {
    border-radius: 20px 20px 0 0;
  }
  .phone-input {
    width: 100%;
  }
  .form-section {
    margin-top: 15px;
  }
  .mortgage-calculator-header {
    row-gap: 15px;
  }
  .team-desktop {
    display: none;
  }
  .vertical-swiper .swiper-pagination::after {
    left: 6%;
    top: 25px;
    width: 88%;
    height: 1px;
  }
  .vertical-swiper .swiper-pagination {
    margin-left: 0 !important;
    height: auto;
    column-gap: 10px;
    right: 0;
    transform: unset !important;
    margin-inline: auto !important;
    flex-direction: row;
    position: absolute !important;
    margin-top: -5px !important;
  }
  .vertical-swiper .swiper-pagination .swiper-pagination-bullet {
    width: 16px;
    height: 16px;
    background: #f5f5f7;
  }

  .advantage-list-item p {
    font-size:14px !important;
  }

  .form-container {
    margin-top: 30px;
  }
  .team-member {
    height: 320px;
  }
  .team-front > img {
    object-fit: cover;
    height: 100%;
    object-position: top;
  }
  .banner-about + .banner-image {
    display: none;
  }
  .banner-image-first {
    margin-top: 30px;
  }

  .advantage {
    background-size: 100% auto;
    background-position: bottom;
    border-radius: 10px;

    box-shadow: rgb(255 255 255) -3px -2px 6px 3px,
      rgb(151 142 142 / 52%) 3px 3px 5px 0px;
  }
  .swiper-vertical>.swiper-wrapper{
    height: 350px;
  }
}

@media (max-width: 600px) {
  body {
    --fz-50: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    row-gap: 12px;
  }
  .footer-logo img {
    max-width: 170px;
    margin-inline: auto;
  }
  .splide__slide {
    width: 100% !important;
  }
  .home-banner::after {
    background-image: url(../images/mobImg.jpg);
    background-size: 100%;
  }
  .home-banner-content {
    text-align: center;
  }
  .why-choose {
    padding-top: 50px;
  }
  .resident-tab.active::before {
    width: 14px;
    height: 14px;
  }
  .dialog-popup {
    padding: 24px !important;
  }
  .home-banner .container {
    align-items: flex-start;
    height: 700px;
    padding-top: 90px;
  }
  .home-banner-content h1 {
    margin-bottom: 20px;
  }
  .banner-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-evenly;
  }
  .why-choose .image {
    order: 2;
  }
  .why-choose .image .inside img:nth-child(2) {
    margin-bottom: 0;
  }
  .why-choose .image .inside img:nth-child(1) {
    max-width: 260px;
  }

  .offer-card-item .back::after,
  .offer-card-item .front::after {
    background-size: 100px !important;
  }
  .offer-card-item .front {
    min-height: 360px;
  }
  .card {
    height: 360px;
  }
  .offer-card-item .front {
    border-radius: 20px;
  }
  .advantage-list-item h4 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .blog-list {
    grid-template-columns: repeat(1, 1fr);
  }
}
