@media (max-width: 1023px) {
  :root {
    --container-padding: 40px;
    --grid-gap: 20px;
  }
}

@media (max-width: 767px) {
  :root {
    --container-padding: 20px;
    --grid-gap: 16px;
    --header-height: 56px;
    --section-padding-y: 30px;
    --section-padding-y-after-hero: 60px;
    --logo-plashka-width: 162px;
    --logo-plashka-height: 46px;
    --logo-plashka-padding-x: 20px;
    --logo-plashka-padding-top: 14px;
    --logo-plashka-padding-bottom: 18px;
  }

  .col-6,
  .col-7,
  .col-5,
  .col-4 {
    grid-column: span 12;
  }

  /* Header */
  .site-header__inner {
    height: var(--header-height);
  }

  .header-nav-btn {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .site-header__logo {
    top: calc(32px * (1 - var(--logo-scroll-progress, 0)) + 50% * var(--logo-scroll-progress, 0));
  }

  .site-header__logo img {
    height: 14px;
  }

  /* Hero */
  .hero {
    align-items: flex-start;
    min-height: 100svh;
    padding-top: 96px;
    padding-bottom: 0;
  }

  .hero__title,
  .hero__subtitle,
  .hero__badge--inline {
    transform: translateY(60px);
  }

  .hero__content {
    position: static;
  }

  .hero__badge--bottom {
    display: none;
  }

  .hero__badge--inline {
    display: inline-flex;
    width: auto;
    height: auto;
    margin-bottom: 0;
    padding: 10px 16px;
    font-size: 16px;
    color: var(--bg-dark);
    background-color: var(--header-bg);
    border-radius: 10px;
  }

  .site-header__callback-text {
    display: none;
  }

  .site-header__callback-icon {
    display: block;
  }

  .site-header__callback {
    width: 44px;
    height: 44px;
  }

  .hero__bg img {
    object-position: center top;
  }

  .hero__building {
    right: 50%;
    bottom: 0;
    left: auto;
    width: min(100%, 493px);
    transform: translateX(50%) scale(1.1);
    transform-origin: center bottom;
  }

  .hero__building img {
    object-position: center bottom;
  }

  .hero__title {
    margin-bottom: 12px;
    font-size: 22px;
    letter-spacing: 0.02em;
  }

  .hero__subtitle {
    margin-bottom: 16px;
    font-size: 29px;
  }

  .hero__btn {
    position: absolute;
    left: var(--container-padding);
    right: var(--container-padding);
    bottom: 60px;
    z-index: 4;
    width: auto;
    margin: 0;
    color: var(--text-primary);
    background-color: var(--accent);
  }

  .hero__btn:hover {
    color: var(--text-primary);
    background-color: var(--accent);
  }

  .about__text p,
  .location__intro,
  .infrastructure__text p,
  .plans__area,
  .plans__text,
  .about__feature-text,
  .location__list li,
  .infrastructure__list li {
    font-size: var(--section-copy-size-mobile);
  }

  /* About */
  .about__content {
    padding-right: 0;
  }

  .about__grid {
    gap: 32px;
  }

  .about__title {
    margin-bottom: 24px;
    font-size: 28px;
  }

  .about__text {
    margin-bottom: 32px;
  }

  .about__features {
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
  }

  .about__feature:nth-child(1) { order: 1; }
  .about__feature:nth-child(2) { order: 4; }
  .about__feature:nth-child(3) { order: 2; }
  .about__feature:nth-child(4) { order: 5; }
  .about__feature:nth-child(5) { order: 3; }
  .about__feature:nth-child(6) { order: 6; }

  .about__feature,
  .about__feature:nth-child(even) {
    padding: 14px 0;
  }

  .about .btn {
    width: 100%;
  }

  /* Infrastructure */
  .infrastructure__grid {
    gap: 32px;
  }

  .infrastructure__content,
  .infrastructure__gallery,
  .infrastructure-slider__nav {
    grid-column: span 12;
    grid-row: auto;
  }

  .infrastructure-slider__nav {
    margin-top: 16px;
    order: 3;
  }

  .infrastructure__content {
    order: 1;
  }

  .infrastructure__gallery {
    order: 2;
    align-self: auto;
  }

  .infrastructure__title {
    margin-bottom: 24px;
    font-size: 28px;
  }

  .infrastructure__text {
    margin-bottom: 20px;
  }

  .infrastructure__list {
    gap: 10px;
  }

  .infrastructure-slider {
    aspect-ratio: 3 / 4;
  }

  .infrastructure-gallery__slider {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .infrastructure-gallery__dots {
    position: static;
    transform: none;
    align-self: center;
  }

  .infrastructure-gallery__dots--mobile {
    display: flex;
  }

  .infrastructure-gallery__controls {
    display: none;
  }

  .col-10 {
    grid-column: span 12;
  }

  .infrastructure {
    padding-bottom: var(--section-padding-y);
  }

  .infrastructure-gallery {
    width: auto;
    margin-top: 24px;
    margin-left: 0;
    padding: 0 var(--container-padding);
  }

  .infrastructure-gallery__title {
    margin-bottom: 24px;
    padding: 0;
    font-size: 28px;
  }

  .infrastructure-gallery__slider--desktop {
    display: none;
  }

  .infrastructure-gallery__slider--mobile {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .infrastructure-gallery__slider--mobile .infrastructure-gallery__viewport {
    height: auto;
    aspect-ratio: auto;
    border-radius: var(--radius-lg);
    touch-action: pan-y;
  }

  .infrastructure-gallery__slider--mobile .infrastructure-gallery__track {
    position: relative;
    inset: auto;
    height: auto;
    align-items: flex-start;
  }

  .infrastructure-gallery__slider--mobile .infrastructure-gallery__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: auto;
  }

  .infrastructure-gallery__slider--mobile .infrastructure-gallery__slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius-lg);
  }

  .infrastructure-gallery__viewport {
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    touch-action: pan-y;
  }

  .infrastructure-gallery__track {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .infrastructure-gallery__slide {
    height: 100%;
  }

  .infrastructure-gallery__zone {
    display: none;
  }

  .location-slider__nav,
  .infrastructure-slider__nav {
    display: none;
  }

  .location-slider__dots,
  .infrastructure-slider__dots {
    display: flex;
    margin-top: 16px;
  }

  .location-slider,
  .infrastructure-slider {
    touch-action: pan-y;
  }

  /* Formats */
  .formats__title {
    margin-bottom: 32px;
    font-size: 28px;
  }

  .formats__grid {
    gap: 32px;
  }

  .formats__visual img {
    min-height: 320px;
  }

  .formats__cards {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .formats__card {
    min-height: 140px;
    padding: 20px;
    gap: 20px;
  }

  .formats__card-icon.icon {
    width: 28px;
    height: 28px;
  }

  .formats__card-text {
    font-size: 15px;
  }

  /* Plans */
  .plans__title {
    margin-bottom: 32px;
    font-size: 28px;
  }

  .plans__tabs {
    margin-bottom: 32px;
  }

  .plans__tab {
    padding: 12px 20px;
    font-size: 15px;
  }

  .plans__grid {
    gap: 32px;
  }

  .plans__content {
    gap: 24px;
  }

  .plans__subtitle,
  .plans__price {
    font-size: 24px;
  }

  .plans__visual {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
    padding: 24px;
  }

  .plans__visual-inner {
    inset: 24px;
  }

  .plans .btn {
    width: 100%;
  }

  /* Finishing */
  .finishing__title {
    margin-bottom: 32px;
    font-size: 28px;
  }

  .finishing__grid {
    gap: 32px;
  }

  .finishing__card {
    gap: 20px;
  }

  .finishing__card-head {
    gap: 16px;
  }

  .finishing__card-num {
    font-size: 40px;
  }

  .finishing__card-body {
    padding-top: 4px;
  }

  .finishing__card-title {
    font-size: 16px;
  }

  .finishing__card-text {
    font-size: 13px;
  }

  /* Offers */
  .offers__title {
    margin-bottom: 32px;
    font-size: 28px;
  }

  .offers__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .offers__card {
    min-height: 140px;
    padding: 20px;
    gap: 20px;
    background-color: var(--accent);
  }

  .offers__card:hover {
    background-color: var(--accent);
  }

  .offers__card-text {
    font-size: 15px;
  }

  .offers__card-link {
    font-size: 15px;
  }

  /* Developer */
  .developer__grid {
    gap: 32px;
  }

  .developer__intro {
    min-height: auto;
    gap: 32px;
  }

  .developer__stat-num {
    font-size: 72px;
  }

  .developer__stat-label {
    font-size: 28px;
  }

  .developer__cards {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .developer__card {
    min-height: 140px;
    padding: 20px;
    gap: 20px;
  }

  .developer__card-value {
    font-size: 24px;
  }

  .developer__card-value--sm {
    font-size: 20px;
  }

  .developer__card-text {
    font-size: 15px;
  }

  /* Location */
  .location__grid {
    gap: 32px;
  }

  .location__content {
    order: 1;
    padding-left: 0;
  }

  .location__gallery {
    order: 2;
  }

  .location__title {
    margin-bottom: 24px;
    font-size: 28px;
  }

  .location__intro {
    margin-bottom: 16px;
  }

  .location__list {
    gap: 8px;
    margin-bottom: 32px;
  }

  .location-map {
    margin-top: 24px;
  }

  .location-map__canvas {
    height: 380px;
  }

  .location-map__marker--main {
    width: 48px;
    height: 54px;
  }

  .location-map__pin {
    width: 48px;
    height: 54px;
  }

  .location-map__logo {
    left: calc(100% + 8px);
    top: 8px;
    width: 120px;
    height: 28px;
  }

  .location-map__marker--poi {
    width: 32px;
    height: 32px;
  }

  .location-map__marker--poi .icon {
    width: 18px;
    height: 18px;
  }

  /* CTA */
  .cta__banner {
    min-height: 480px;
  }

  .cta__content {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
    padding: 40px 24px 300px;
  }

  .cta__title {
    font-size: 28px;
  }

  .cta__text {
    margin-bottom: 24px;
    font-size: 13px;
  }

  .cta__visual {
    left: 50%;
    right: auto;
    width: 95%;
    height: 52%;
    transform: translateX(calc(-50% + 10px));
  }

  .cta__visual img {
    left: 50%;
    right: auto;
    bottom: -14%;
    width: 118%;
    max-height: 135%;
    object-position: center bottom;
    transform: translateX(calc(-50% + 10px));
  }

  .cta__btn {
    width: 100%;
  }

  /* Footer */
  .site-footer__aside {
    gap: 32px;
    align-items: flex-start;
  }

  .site-footer__phone {
    margin-bottom: 24px;
    font-size: 28px;
  }

  .site-footer__year {
    align-self: flex-start;
  }

  .site-footer__year svg {
    width: 73px;
    height: 19px;
  }

  .site-footer__year svg path {
    fill: #ffffff;
  }

  .site-footer__links {
    align-items: flex-start;
  }

  .site-footer__link {
    text-align: left;
  }

  /* Popup */
  .popup {
    padding: 16px;
    align-items: flex-end;
  }

  .popup__dialog {
    max-width: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .popup__layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .popup__visual {
    display: none;
  }

  .popup__body {
    padding: 32px 24px 24px;
  }

  .popup__title {
    font-size: 20px;
    padding-right: 32px;
  }

  .popup__subtitle {
    margin-bottom: 24px;
  }
}

@media (max-width: 374px) {
  .header-nav-btn {
    font-size: 10px;
  }

  .site-header__callback {
    max-width: none;
  }

  .hero__title {
    font-size: 24px;
  }
}
