html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}

body {
    background-color: #d3d3d3;
    margin: 0;
    font-family: serif;
}

p, strong {
    font-size: 20px;
    color: #272c2c;
}

a {
    color: #354c4f;
}

h1 {
    font-size: 40px;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 24px;
}

img {
    width: 100%;
    max-height: 800px;
    object-fit: cover;
}

main {
    background-color: #fcf6f5;
    max-width: 960px;
    margin: -250px auto 250px;
    padding: 60px;
    z-index: 2;
    position: relative;
}

.overlay {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.66);
    z-index: 3;
}

.modal {
    position: absolute;
    background-color: #fff;
    top: 16px;
    left: 16px;
    bottom: 16px;
    right: 16px;
}

@media screen and (min-width: 768px) {
    .modal {
        width: 660px;
        transform: translate(-50%, -50%);
        top: 50%;
        left: 50%;
        min-height: 400px;
    }
}

.modal-header {
    min-height: 56px;
    background-color: #f0f0f0;
    padding: 19px 50px 17px 20px;
}

.modal-header .modal-title {
    margin: 0;
    font-family: Roboto, sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 20px;
}

.modal-header .modal-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    cursor: pointer;
    width: 56px;
    height: 56px;
    padding: 20px;
}

.modal-actions {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    height: 56px;
    background-color: #f0f0f0;
    padding: 10px 16px;
}

.modal-actions .modal-buttons {
    position: absolute;
    right: 16px;
}

.btn {
    padding: 8px 12px;
    margin-left: 0;
    background: #dbdbdb;
    border-radius: 2px;
    border: none;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    line-height: 20px;
    cursor: pointer;
}

.btn-primary {
    background: #3754ef;
    color: #fff
}

.btn-primary:hover {
    background: red;
    color: #000
}

