@media (max-width: 1600px) {
  .footer__inner {
    padding: 50px 80px;
    gap: 30px;
  }
}

@media (max-width: 1250px) {
  .story__min {
    bottom: 100px;
  }
  .home {
    gap: 30px;
  }
  .home__img {
    width: 100%;
    height: 250px;
  }
  .story__slider {
    margin: 50px 0;
  }
}

@media (max-width: 978px) {
  .header {
    padding: 10px 50px 50px;
  }
  .header__text {
    font-size: 40px;
    line-height: 140%;
  }
  .header__top {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .header__menu {
    display: none;
  }
  .logo {
    width: 100px;
  }
  .footer__inner {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
    padding: 40px;
    gap: 50px;
  }
  .menu-btn {
    display: -ms-grid;
    display: grid;
  }
  .story {
    padding: 50px 0;
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    gap: 20px;
  }
  .story__min {
    display: none;
  }
  .story__big {
    width: 100%;
    height: 250px;
  }
  .home {
    margin: 20px 0 0;
    gap: 0;
  }
  .form {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .form__img {
    height: 300px;
  }
  .form .btn {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    padding: 15px;
  }
  .story__inner {
    -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
  }
  .story__item:nth-child(3) {
    display: none;
  }
  .story__dots-item:nth-child(4) {
    display: inline-block;
  }
  .story-person {
    gap: 25px;
    padding: 25px;
  }
  .story-person .text {
    width: 100%;
  }
  .story-person__info {
    margin-top: 40px;
  }
  .story-person__img {
    width: 200px;
    height: 200px;
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
    -ms-grid-column-align: center;
        justify-self: center;
  }
  .story-villa__inner {
    -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
  }
  .story-villa__item:nth-child(3) {
    display: none;
  }
  .gallery {
    gap: 20px;
    -ms-grid-columns: (minmax(315px, 1fr))[auto-fit];
        grid-template-columns: repeat(auto-fit, minmax(315px, 1fr));
    margin: 50px 0;
  }
  .gallery__content {
    padding: 13px;
  }
}

@media (max-width: 768px) {
  .form {
    margin: 50px 0;
  }
  .form__content {
    padding: 20px;
        grid-template-areas: 'title title' 'phone phone' 'name name' 'message message' 'btn btn';
  }
  .story__inner {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .story__item:nth-child(2) {
    display: none;
  }
  .story__dots-item:nth-child(5) {
    display: inline-block;
  }
  .story-person {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
    margin-bottom: 30px;
  }
  .story-person__info {
    -ms-flex-item-align: start;
        -ms-grid-row-align: start;
        align-self: start;
    margin-top: 10px;
  }
  .story-villa {
    margin-bottom: 30px;
  }
  .story-villa__inner {
    -ms-grid-columns: (1fr)[1];
        grid-template-columns: repeat(1, 1fr);
  }
  .story-villa__item:nth-child(2) {
    display: none;
  }
  .story-villa .link {
    margin-bottom: 16px;
  }
}

@media (max-width: 678px) {
  .container {
    padding: 0 30px;
  }
  .title {
    font-size: 18px;
  }
  .text {
    font-size: 14px;
  }
  .story .text {
    width: 100%;
  }
  .title i {
    font-size: 19px;
  }
  .home {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .home__img {
    width: 100%;
    height: 250px;
  }
}

@media (max-width: 580px) {
  .header__text {
    font-size: 28px;
  }
  .logo {
    width: 70px;
  }
  .menu-btn {
    width: 50px;
    height: 40px;
  }
  .btn {
    padding: 15px;
  }
  .footer__inner {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .home {
    padding: 20px;
  }
  .home__img {
    height: 200px;
  }
  .form__img {
    height: 200px;
  }
  .emails {
    margin-bottom: 30px;
  }
  .emails__inner {
    display: -ms-grid;
    display: grid;
    width: 100%;
    -ms-grid-columns: (minmax(140px, 1fr))[auto-fit];
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
  }
  .header__text {
    font-size: 18px;
  }
  .story-person {
    padding: 15px;
  }
  .story-person__img {
    height: 150px;
    width: 150px;
  }
  .gallery {
    -ms-grid-columns: (minmax(100%, 1fr))[auto-fit];
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
  }
  .link {
    margin-bottom: 30px;
  }
}
/*# sourceMappingURL=media.css.map */