@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

:root {
    --bg-general: #222222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background-color: var(--bg-general);
}
h1,
h1 span,
h4 {
    font-size: 32px;
    font-family: 'Nunito Sans';
    letter-spacing: 1px;
    font-weight: 900;
}
h1 span {
    color: #5B60CD;
}
a {
    text-decoration: none;
}

a,
span,
p,
button {
    font-weight: 600;
    font-size: 19px;
    color: #000000;
    font-family: 'Nunito Sans';
    letter-spacing: 1px;
}
button {
    position: relative;
    overflow: hidden;
    border: rgba(34, 34, 34, 0);
    cursor: pointer;
    font-size: 16px;
    width: 273px;
    height: 77px;
    border-radius: 50px;
    font-weight: bold;
    color: #FBFBFB;
    background: #222222;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
button:hover {
    transition: .3s;
    background-color: #3F3C3C;
}
button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
            to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: shine 3s infinite linear;
}

h2 {
    color: #000000;
    font-family: 'Nunito Sans';
    letter-spacing: 1px;
    font-weight: 700;
}

a:hover {
    transition: .6s;
    color: #5B60CD;
}

ul li {
    list-style: none;
}

img {
    max-width: 100%;
}

.preview {
    width: 90%;
    height: 851px;
    border-radius: 26px;
    background: linear-gradient(180deg, #FBF9F9 0%, #A7A5A5 100%);
    position: relative;
    top: 16px;
    margin: 0 auto;
    padding: 22px;
}
.header {
    width: 90%;
    height: 50px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 196px;
}
.header h2 {
    margin-left: 8px;
}
.header div:nth-child(1),
.header div:nth-child(2),
.header div:nth-child(3) {
    width: auto;
}
.header div:nth-child(1),
.header div:nth-child(2),
.header div:nth-child(2) ul,
.header div:nth-child(3),
.preview__body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.header div:nth-child(2) ul li {
    width: 13em;
    text-align: center;
}

.lamp {
    display: inline-flex;
    width: 10px !important;
    height: 10px;
    background-color: #5B60CD;
    border-radius: 100px;
    margin-right: 8px;
    animation: pulse 1.5s infinite ease-in-out;
}

.preview__body {
    justify-content: space-between;
    width: 90%;
    margin: 0 auto;
}
.preview__description,
.preview__media {
    width: 34%;
}

.preview__body .preview__description h1 {
    margin-bottom: 46px;
}
.preview__body .preview__description p {
    font-size: 20px;
    margin-bottom: 88px;
}

.preview__media #play:hover {
    cursor: pointer;
}

.preview__footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 55px;
}
.preview__footer svg {
    animation: bounce 1.2s infinite;
}

.main {
    margin-top: 142px;
}

.main section {

}
.main section h2 {
    color: #FBFBFB;
    text-align: center;
    font-size: 34px;
}
.about-work {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 80%;
    margin: 0 auto;
    margin-top: 84px;
}
.about-work__aside {
    width: 33.3%;
    height: 520px;
    padding-left: 33px;
    padding-right: 33px;
    padding-bottom: 36px;
    background: #FBF9F9 url(../images/mask.png);
    background-position: bottom;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}
.about-work__aside button {
    margin: 0 auto;
}
.about-work__grid {
    width: 65%;
    height: 520px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.about-work__card {
    width: 49%;
    height: 250px;
    border-radius: 10px;
    background-color: #5B60CD;
    padding-left: 33px;
    padding-right: 33px;
    padding-top: 30px;
}
.about-work__card .work-card__header,
.about-work__card .work-card__body {
    width: 100%;
    height: auto;
}
.about-work__card .work-card__header h3,
.about-work__card .work-card__body p {
    color: #FBF9F9;
}
.about-work__card .work-card__header h3 {
    font-size: 24px;
    font-family: 'Nunito Sans';
    letter-spacing: 1px;
    font-weight: 700;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
.about-work__card .work-card__header h3 svg {
    margin-right: 5%;
}
.about-work__card .work-card__body p {
    font-family: 'Nunito Sans';
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 19px;
}

.case {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 80%;
    margin: 0 auto;
    margin-top: 84px;
}

.case__item {
    width: 31.3%;
    height: 324px;
    border-radius: 30px;
    /* временное решение, заменить на имедж */
    background: linear-gradient(180deg, #FBF9F9 0%, #A7A5A5 100%);
    margin-bottom: 28px;
}
.case__description {
    background-color: #2D2C2C;
    width: 100%;
    height: 99px;
    position: relative;
    top: 225px;
    border-radius: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.case__container {
    width: 90%;
    height: auto;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.case__container p {
    width: 60%;
    color: #FBF9F9;
}
a.tag {
    width: 125px;
    height: 36px;
    border-radius: 50px;
    background-color: #FBFBFB;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0px 5px 0px 5px;
}
a.tag:hover svg d {
    transition: .5s;
    fill: #5B60CD;
}

.banner {
    width: 80%;
    height: 307px;
    border-radius: 30px;
    background-image: url('../images/Rectangle.png');
    background-position: center;
    background-size: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: background-size;
}
.banner {
    animation: shrink-bg 0.6s forwards;
}
.banner:hover {
    animation: grow-bg 0.8s forwards;
}
.banner button {
    background-color: #FBF9F9;
    color: #3F3C3C;
}

footer {
    margin-top: 98px;
    width: 100%;
    height: 121px;
    background: linear-gradient(180deg, #FBF9F9 0%, #A7A5A5 100%);
    border-radius: 30px 30px 0px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}
footer section {
    width: 80%;
    height: auto;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: #3f3c3cbf;
}
.modal__content {
    border-radius: 30px;
    width: 592px;
    height: 766px;
    background: linear-gradient(180deg, #FBF9F9 0%, #A7A5A5 100%);
    padding: 40px;
}
.modal__content .control {
    display: flex;
    justify-content: end;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}
.modal__content .control button {
    height: auto;
    width: auto;
    background-color: #ffffff00;
    border-color: #ffffff00;
    box-shadow: none;
}
.modal__content .control button svg {
    width: 32px;
    height: 32px;
}
.modal__body {
    width: 70%;
    margin: 0 auto;
}
.modal__body h4 {
    text-align: start;
    font-size: 18px;
    margin-bottom: 35px;
}
.modal__body section {
    width: 100%;
    margin-bottom: 30px;
}
.modal__body section input,
.modal__body section textarea {
    border-radius: 30px;
    width: 100%;
    height: 60px;
    padding: 8px 18px;
    border-color: #ffffff00;
}
.modal__body section textarea {
    height: 150px;
    padding-top: 20px;
}
.modal__body section button {
    width: 100%;
}

@media screen and (max-width: 550px) {
    img {
        max-width: 70%;
    }
    a, span, p {
        font-size: 100%;
    }
    button {
        font-size: 100%;
    }
    .main section h2 {
        font-size: 120%;
    }
    .preview {
        width: 100%;
        border-radius: 0;
        top: 0;
        margin: 0 auto;
    }
    .preview__body .preview__description h1,
    .preview__body .preview__description h1 span {
        font-size: 110%;
    }
    .header {
        width: 100%;
        height: 8rem;
        margin-bottom: 3rem;
    }
    .header h2 {
        display: none;
    }
    .header div:nth-child(2) {
        display: none;
    }
    .preview {
        height: 90vh;
    }
    .preview__body {
        width: 100%;
    }
    .preview__description {
        width: 90%;
        margin: 0 auto;
    }
    .preview__media, .preview__footer {
        display: none;
    }
    .preview button {
        width: 100%;
        height: auto;
        padding: 6%;
    }
    .about-work {
        width: 95%;
    }
    .about-work__aside {
        width: 100%;
        height: 17rem;
        margin-bottom: 1rem;
    }
    .about-work__card .work-card__header h3 {
        text-decoration: underline;
    }
    .about-work__card .work-card__header h3 svg {
        display: none;
    }
    .about-work__grid {
        width: 100%;
    }
    .case {
        width: 95%;
    }
    .case__item {
        width: 90%;
        margin: 0 auto;
        margin-bottom: 4rem;
        background-size: 100%;
        background-position: center;
        background-repeat: no-repeat;
    }
    .banner {
        width: 95%;
        height: 22rem;
        background-image: url('https://i.pinimg.com/736x/c7/72/18/c77218d7fc9ca40792318e4b7fbed10c.jpg');
        background-position: bottom;
        background-size: cover;
    }
    .banner button {
        width: 90%;
        background-color: #3F3C3C;
        color: #FBF9F9;
    }
    .modal__content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    .modal__body {
        width: 80%;
        margin: 0 auto;
        margin-top: 12rem;
    }
    .modal__body h4 {
        font-size: 120%;
        font-weight: 400;
    }
    .modal__body section input {
        height: 3rem;
        font-size: 100%;
    }
    .modal__body section textarea {
        font-size: 100%;
    }
    .about-work__card {
        width: 100%;
        margin-bottom: 1rem;
    }
    .w-full {
        margin-top: 7rem;
        margin-bottom: 39rem;
    }
    footer button,
    footer span,
    footer p {
        display: none;
    }
    .modal .control {
        margin-bottom: 3rem;
    }
    .modal__body {
        margin-top: 3rem;
    }

}
@media screen and (min-width: 320px) {
    a, span, p {
        /*font-size: 100%;*/
    }
    .lamp {
        display: none!important;
    }

}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.6;
    }
    100% {
        transform: scale(2);
        opacity: 0.2;
    }
}

@keyframes grow-bg {
    from { background-size: 100%; }
    to { background-size: 105%; }
}

@keyframes shrink-bg {
    from { background-size: 105%; }
    to { background-size: 100%; }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}