/* 1. DESKTOP - большие экраны */
@media (min-width: 1200px) {
  .page__body {
    font-size: 12px;
  }

  .contact-toggle,
  .contact-options {
    display: none;
  }
}

/* 2. TABLET - планшеты и средние экраны (768px - 1199px) */
@media (max-width: 1199px) {
  :root {
    --container-offset: 50px;
  }

  .header__logo {
    max-width: 150px;
  }

  .advantage__title {
    margin-bottom: 3em;
  }

  .advantage__list {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 30px;
  }

  .advantage__item {
    padding: 0;
    border-right: none;
  }

  .advantage__item:first-child {
    padding-left: 0;
  }

  .advantage__item:last-child {
    border: none;
    padding-right: 0;
  }

  .project {
    padding: 100px 20px;
  }

  .price__list {
    flex-direction: column; /* Блоки располагаются в столбик */
  }

  .price__block {
    max-width: 100%; /* Блоки растягиваются по ширине */
  }

  .stage__block-list {
    flex-wrap: wrap;
  }

  .stage__block-item {
    width: 100vw;
  }

  .stage__block-item::after {
    display: none;
  }

  .stage-2 .stage__block-item {
    padding-top: 75px;
    border-right: 1px solid white;
  }

  .stage-2 .stage__container-stage {
    top: -20px;
  }

  .smi__item {
    width: 32vw;
    margin-bottom: 40px;
  }

  .smi__item-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32vw;
    height: 32vw;
    margin-bottom: 25px;
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    transition: all ease-in-out 0.5s;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 12px;
  }

  .price {
    padding: 150px 20px;
  }

  .advantage {
    min-height: auto;
    padding: 12em 2em;
  }

  .advantage__title {
    margin-bottom: 3em;
    font-size: 1.8em;
  }

  .advantage__list {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 30px;
  }

  .advantage__item {
    padding: 0;
    border-right: none;
    margin-bottom: 50px;
  }

  .advantage__item-title {
    margin-bottom: 1em;
  }

  .advantage__item-subtitle {
    width: 70vw;
  }

  .advantage__item:first-child {
    padding-left: 0;
  }

  .advantage__item:last-child {
    border: none;
    padding-right: 0;
  }

  .services__list {
    flex-direction: column;
  }

  .services__item {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #ffff;
  }

  .services__item-block {
    padding: 20px;
    height: 40vh;
  }

  .services__item-title {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .services__item-subtitle {
    font-size: 12px;
    transform: translateY(25vh);
  }

  /* Show subtitle on hover */
  .services__item:hover .services__item-subtitle {
    transform: translateY(5vh);
  }

  .services {
    height: auto;
  }

  .smi__item-text {
    font-size: 0.5em;
  }

  .clients {
    display: none;
  }

  .about__services {
    width: 100%;
    right: 0;
    left: 0;
    top: 30px;
    margin: 0px;
  }

  .about__list {
    flex-wrap: wrap;
  }

  .about__item {
    margin: 50px 0;
  }

  .about__item:nth-child(2) {
    margin: 50px 0;
  }

  .project__list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .project__item {
    margin: 50px 0;
  }

  .project__sample {
    text-transform: uppercase;
    margin: 0;
    text-align: start;
  }

  .project__container {
    flex-wrap: wrap;
  }

  .project__block {
    max-width: 100%;
    margin-bottom: 50px;
    margin-right: 0;
  }

  .project__video {
    width: 100%;
  }

  .main-image {
    border-radius: 10px;
  }

  .project-gallery img {
    border-radius: 10px;
  }

  .render__title {
    font-size: 2em;
  }

  .hero-agr__container {
    padding-left: 1em;
  }

  .info-3d__container {
    max-width: 100%;
    margin-right: 0;
  }

  .hero-agr__title {
    font-size: 2em;
  }

  .project-3d {
    margin: 5em 0;
    flex-wrap: wrap;
  }

  .project-3d__subtitle {
    margin-bottom: 1.5em;
  }

  .project-3d__title {
    font-size: 2em;
    margin-bottom: 1.5em;
  }

  .info-3d__lower-block {
    align-items: start;
  }

  .info-3d__end-btn {
    width: 245px;
  }

  .info-3d__discr {
    text-align: center;
  }

  .info-3d__middle {
    flex-direction: column;
  }

  .info-3d__lower-block {
    flex-direction: column;
  }

  .blockquote__container p {
    font-size: 1.4rem;
  }

  .projects-card-container {
    max-width: 100%;
    padding: 0;
  }

  .faq__questions-text {
    font-size: 0.8em;
    line-height: 1em;
  }

  .faq__item-info.ac-active {
    visibility: visible;
    max-height: 1000px;
  }

  .faq.container {
    backdrop-filter: blur(5px);
    color: white;
    padding: 3em 1.5em;
  }

  .form__contact {
    width: 100vw;
    bottom: 0;
    height: 80px;
    padding: 0 10px;
    border-radius: 0;
    justify-content: center;
  }

  .form__contact p {
    display: none;
  }

  .form__contact-links {
    margin-right: 10px;
  }

  .form__contact-links:last-of-type {
    margin-right: 10px;
  }

  .form__contact-button {
    font-size: 12px;
    padding: 10px 40px;
    border-radius: 5px;
  }

  .form__contact-button:hover {
    transform: scale(1.01);
  }

  .calculator__wrapper {
    display: grid;
    grid-template-columns: 1fr;
  }

  .price__title {
    text-align: center;
  }

  .price__subtitle {
    text-align: center;
  }

  .price__block-title {
    text-align: center;
  }

  .section__title {
    text-align: center;
    color: white;
    font-size: 2.3em;
  }

  .footer__container {
    margin: 0 auto;
    padding: 0 20px;
  }

  .footer__services-grid {
    display: none;
  }

  .footer__contact-section {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 3fr;
    grid-template-columns: 1fr 1fr;
  }

  .footer__header-left {
    width: 100%;
  }

  .footer__header-right {
    width: 100%;
    margin-bottom: 20px;
  }

  .footer__header {
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0px;
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: row-reverse;
  }

  .devider-mobile {
    display: block;
  }

  .footer__back-to-top {
    display: none;
  }

  /* Мобильная версия */
  .mobile-burger {
    display: block; /* Показываем мобильную кнопку */
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
  }

  .desktop-burger {
    display: none; /* Скрываем десктопную кнопку */
  }
}
