@media only screen and (max-width: 1500px) and (min-width: 1333px) {
    .pics {
        width: 680px;
    }
    .first h1 {
        font-size: 68px;
    }
    .first p {
        font-size: 18px;
    }
}
@media only screen and (max-width: 1333px) {
    .pics {
        width: 500px;
        min-height: 100%;
    }
    .first {
        min-height: 100%;
    }
    .inner.about .members, .inner.services .list {
        grid-template-columns: 230px 1fr 230px;
    }
    .inner.about .members img {
        width: 230px;
    }
    .inner.services .list div {
        max-width: 230px;
    }
    .inner.contact .list {
        column-gap: 50px;
    }
    .third .wellchat {
        grid-template-columns: 1fr;
    }
    .third .wellchat .product {
        padding-top: 15px;
    }
    .third .wellchat .image {
        padding: 0;
        margin-left: 25px;
    }
    .third .wellchat .image img {
        height: 300px;
        width: auto;
    }
    .third .sunshine .product {
        grid-template-rows: 200px 1fr;
    }
    .third .sunshine .product .emblem {
        grid-row: 1;
    }
    .third .sunshine .product .buttons {
        grid-column: 1/3;
    }
}
@media only screen and (max-width: 1111px) {
    h1 {
        font-size: 64px;
        line-height: 62px;
        padding-top: 85px;
    }
    .first p {
        font-size: 17px;
        line-height: 30px;
    }
    .third .screen {
        grid-template-columns: 1fr;
        min-height: 835px;
        align-items: unset;
        padding: 50px;
        background: #3B3B3F url(../images/screen/image-mob.png);
        background-repeat: no-repeat;
        background-position: bottom -1px left -1px;
        background-size: 100%;
      }
      .third .screen .product {
        grid-column: 1;
      }
      .third .tcd, .third .nhr{
        grid-template-columns: 1fr;
      }
      .third .proto {
          grid-template-rows: 1fr 1fr;
          background-size: 30%;
          background-position: left 35px bottom 150px;
      }
      .third .proto .product {
        grid-column: 1/3;
        grid-row: 1;
        }
        .third .proto .image {
            grid-column: 2;
            }
      .third .tcd .image {
          margin-right: 25px;
      }
    .inner.about .members, .inner.services .list {
    grid-template-columns: 160px 1fr 160px;
    }
    .inner.services .list div {
        max-width: 160px;
    }
    .inner.about .members img {
        width: 160px;
    }
    .fourth .container {
        grid-template-columns: repeat(2, auto);
        grid-template-rows: 1fr 1fr 1fr;
        row-gap: 75px;
      }
      .fourth .container img:last-child {
        grid-column: 2;
        grid-row: 1;
      }
      .fourth .container img:nth-child(2) {
        grid-column: 1/3;
        grid-row: 3;
      }
      .fourth .container img:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
      }
      .fourth .container img:nth-child(4) {
        grid-column: 1;
        grid-row: 2;
      }
      .inner.contact .list {
        grid-template-columns: 1fr;
    }
    .inner.contact .list div, .inner.contact h2 {
        margin-left: auto;
    }
    .third .sunshine .emblem {
        width: 70px;
        height: 70px;
        background-size: 35px 35px;
      }
      .third .sunshine .product {
          grid-template-columns: 100px 1fr;
      }
      .inner .path .title h2 {
          font-size: 36px;
      }
      .inner .path .bottom::before {
        top: 120%;
      }
      .inner.contact .list div:nth-child(4) {
        display: none;
    }
}
@media only screen and (max-width: 950px) {
    .first .container {
        padding-left: 225px;
    }
    .second .approach {
        grid-template-columns: 1fr;
        padding: 0 59px;
        margin: 0 0 53px 0;
    }
    .second .approach div {
        margin-top: 52px;
    }
    .second {
        min-height: unset;
        height: fit-content;
        height: -moz-fit-content;
    }
    h2 {
        font-size: 33px;
    }
    h4 {
        font-size: 18px;
        line-height: 23px;
    }
    .second h2 {
        margin-top: 152px;
    }
    .second h3 {
        margin: 25px 0 21px 0;
    }
    .inner.about h2::before {
        background-size: 50%;
        margin-left: 75px;
    }
    .about .team h2::before {
        background-size: 60%;
        margin-left: 90px;
        margin-top: 5px;
    }
    .third .wellchat button, .third .sunshine button {
        min-width: 230px;
    }
    .third .sunshine .image {
        padding: 25px;
    }
    .inner.services h2 {
        line-height: 39px;
        margin-left: 0;
    }
    .inner.services img {
        height: 90px;
    }
    .inner.services .container:nth-child(2) {
        width: 300px;
    }
    .inner .path {
        margin-bottom: 0px;
        grid-template-columns: 1fr;
        text-align: center;
    }
    .inner .path .title {
        grid-column: 1;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        margin-left: auto;
    }
    .inner .path .empty {
        display: none;
    }
    .inner .path div {
        position: relative;
    }
    .inner .path div:not(.title) {
        margin-bottom: 111px;
    }
    .inner .path .c-l::before {
        content: "";
        position: absolute;
        width: 174px;
        height: 155px;
        background: url(../images/services/curve-mob.svg) no-repeat center center;
        top: 55%;
        left: -25px;
    }
    .inner .path .bottom.c-r::before {
    content: "";
    position: absolute;
    width: 174px;
    height: 155px;
    background: url(../images/services/curve-mob.svg) no-repeat center center;
    top: 55%;
    left: unset;
    right: -25px;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    }
    .inner .path .title.c::before, .inner .path .title.r::before {
        content: "";
        position: absolute;
        width: 110px;
        height: 2px;
        background: url(../images/services/line.svg) no-repeat center center;
        transform: rotate(90deg);
        top: 70%;
        left: 20%;
    }
    .inner .path .title.r h2, .inner .path .title.d h2 {
        padding-left: 0;
      }
    .inner .path .title.r, .inner .path .title.d {
        margin-top: 60px;
    }
    .inner .path .title.r::after, .inner .path .title.d::after {
        content: "";
        position: absolute;
        width: 110px;
        height: 2px;
        background: url(../images/services/line.svg) no-repeat center center;
        transform: rotate(90deg);
        top: -70px;
        left: 20%;
    }
}
@media only screen and (max-width: 800px) {
    .alert {
        transform: translate(-50%);
    }
    #toggle {
        display: block;
        z-index: 1;
    }
    .nav {
        grid-template-rows: 1fr;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        height: 72px;
    }
    .nav #nav-icon {
        margin: 21px 25px auto auto;
    }
    .nav a {
        margin-left: 0;
    }
    .nav .logo {
        margin: 19px auto auto 25px;
        width: 75px;
    }
    .nav .logo::before {
        width: 39px;
        height: 17px;
        background-size: 100%;
        top: 5px;
    }
    .nav .logo::after {
        font-size: 5px;
        bottom: 0;
        right: 0;
        top: 9px;
    }
    .nav .logo img {
        width: 30px;
        height: 30px;
    }
    .nav .menu {
        display: grid;
        align-items: center;
        grid-template-rows: 1fr 22vh;
        position: absolute;
        width: 100vw;
        height: 100vh;
        left: 0;
        top: 0;
        background: #2E2D2D;
        top: -100vh;
        transition: all 0.25s ease;
    }
    .nav .social .icons {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .nav .social .icons a div {
        width: 33.3vw;
        background-size: 35px;
    }
    .nav .social .icons a:first-child div {
        background-position: right 24px center;
    }
    .nav .social .icons a:last-child div {
        background-position: left 24px center;
    }
    .nav .links {
        padding-left: 0;
        margin-top: 25px;
        row-gap: 6.3vh;
    }
    .nav .links a {
        font-size: 25px;
        text-align: center;
        width: 100%;
    }
    .links a div.active::after, .links a div::before {
        display: none;
    }
    .show {
        top: 0 !important;
        transition: all 0.3s ease;
	}
    .header, .header::before {
        height: 324px;
        margin-bottom: 50px;
    }
    .header .container {
        padding-left: 0;
    }
    .first .container {
        padding-left: 19px;
    }
    .second .container {
        padding-left: 0;
        padding-bottom: 105px;
    }
    .pics {
        width: 100%;
        max-width: 500px;
        top: 72px;
    }
    .pics::before {
        display: none;
    }
    .third {
        padding-left: 0;
    }
    .third .container {
        grid-template-columns: 1fr;
    }
    .fourth {
        padding-left: 0;
    }
    .fourth .container {
        width: calc(100% - 50px);
    }
    #slider {
        width: calc(100% - 40px);
        height: 625px;
        touch-action: manipulation;
        margin-bottom: 100px;
      }
    .third .container:not(.container.work) {
        column-gap: 0;
        width: 100%;
    }
    .third .container.work {
        margin-bottom: 20px;
    }
    .third h2 {
        margin-bottom: 44px;
    }
    .third .screen, .third .tcd, .third .wellchat, .third .sunshine, .third .nhr, .third .proto {
        min-height: 600px;
        grid-column: 1;
        padding: 28px;
        overflow: hidden;
    }
    .third .proto {
        grid-template-rows: auto 1fr;
    }
    .third .sunshine {
        background-position: bottom -500px left -75px;
    }
    .third .sunshine .product {
        grid-template-rows: 100px 100px;
    }
    .third .sunshine .image {
        padding: 25px 0;
    }
    .third .screen .emblem {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 15px;
    }
    .third .tcd .emblem, .third .wellchat .emblem, .third .nhr .emblem {
        width: 70px;
        height: 70px;
        background-size: 35px 35px;
      }
    .third .tcd .image {
        padding-top: 15px;
    }
    .third .tcd .image::before {
        content: "";
        position: absolute;
        width: 157px;
        height: 160px;
        right: -120px;
        top: 0;
        background: url(../images/tcd/top.svg) no-repeat;
        background-size: 50%;
        z-index: 0;
      }
    .product h2 {
        font-size: 23px;
        margin-top: 7px;
        margin-bottom: 0;
    }
    .product p {
        margin-bottom: 23px;
    }
    .fifth .container {
        padding-left: 0;
    }
    .fifth p {
        max-width: 75%;
    }
    .footer {
        border-top: 38px solid #007AFF;
        padding-left: 0;
    }
    .footer .container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, auto);
        width: 100%;
        margin-left: auto;
      }
    .footer .top {
        padding: 21px 0 64px 0;
        grid-column: 1;
        grid-row: 2;
        border-bottom: none;
        text-align: center;
        padding-bottom: 0;
      }
    .footer a {
        margin-left: auto;
    }
    .footer p, .footer .top a {
        text-align: center;
        font-size: 10px;
    }
    .footer p {
        padding: 19px 0 38px 0;
        line-height: 18px;
    }
    .inner {
        padding-left: 0;
    }
    .inner h2 {
        margin-left: 50px;
    }
    .inner .container {
        width: calc(100% - 100px);
    }
    .inner.about .content {
        grid-template-columns: 1fr;
        column-gap: 0;
        padding: 35px 0 75px 0;
        text-align: center;
    }
    .inner.services .list {
        grid-template-columns: 1fr 1fr;
    }
    .inner.services .list div {
        max-width: 250px;
    }
    .third .wellchat .product {
        position: absolute;
        bottom: 125px;
        right: 50px;
    }
    .third .wellchat .image {
        position: absolute;
        top: 50px;
        left: 0;
    }
}
@media only screen and (max-width: 700px) {
    h1 {
        font-size: 42px;
        line-height: 50px;
    }
    .first h1 {
        padding-top: 296px;
    }
    .first p {
        font-size: 13.5px;
        line-height: 26px;
        padding: 30px 19px 33px 0;
    }
    button, input[type=submit] {
        min-width: 213px;
        height: 45px;
        font-size: 13px;
    }
    button.negative {
        border: 2px solid #007aff;
      }
    .fifth .container::before {
        background-image: url(../images/people/all-mob.jpg);
    }
    .inner.about .members, .inner.services .list {
        grid-template-columns: 1fr;
    }
    .inner.about .members img {
        width: 275px;
    }
    .inner.services .list div {
        max-width: 100%;
        margin-left: 0;
    }
    .header.services::before {
        background-image: url(../images/people/all-mob.jpg);
    }
    .header.about::before {
        background-image: url(../images/about-mob.jpg);
    }
    .header.contact::before {
        background-image: url(../images/contact-mob.jpg);
    }
    .header.work::before {
        background-image: url(../images/work-mob.jpg);
    }
}
@media only screen and (max-width: 500px) {
    #ri-grid ul li:nth-child(8),
    #ri-grid ul li:nth-child(13),
    #ri-grid ul li:nth-child(14) {
        opacity: 0;
    }
    .first p {
        max-width: unset;
    }
    .first {
        min-height: unset;
        height: fit-content;
        height: -moz-fit-content;
    }
    .fourth .container img:first-child,
    .fourth .container img:nth-child(4) {
        margin-left: 0;
      }
    .fourth .container img:last-child,
    .fourth .container img:nth-child(3) {
        margin-right: 0;
    }
    .form div:not(.code) {
        grid-template-columns: 30% 64%;
    }
}