* {
    box-sizing: border-box;
    font-family: 'Open sans', Arial, Helvetica, sans-serif;
    margin: 0;
}

html {
    background: #F8F8F8;
    color: #053456;
}

body {
    text-align: center;
    padding: 60px 20px;
}
@media screen and (min-width: 1024px) {
    body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100vh;
        align-items: center;
    }
}

h1 {
    font-size: 42px;
    font-weight: normal;
    line-height: 1.1;
}

p {
    font-size: 16px;
}

h1 + p {
    max-width: 440px;
    margin: 12px auto 0;
}

.content {
    margin: 60px auto 0;
    max-width: 1150px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px 50px;
}
.content_block {
    max-width: 550px;
    aspect-ratio: 550/460;
    position: relative;
    background: #053456;
    overflow: hidden;
}
@media screen and (min-width: 1024px) {
    .content_block {
        flex: 0 0 calc(50% - 25px);
    }
}

.content_block a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 40px;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
    background: rgba(5, 52, 86, 0.6);
}

.content_block h2 {
    font-weight: 600;
    font-size: 38px;
    text-transform: uppercase;
}

.content_block h2 + p {
    margin: 5px 0 45px;
    max-width: 280px;
}

.content_block button {
    appearance: none;
    padding: 0;
    background: none;
    outline: none;
    border: none;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: 600;
    font-size: 14px;
    line-height: 19px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 9px 24px;
    border: 1px solid white;
    transition: background 0.25s, color 0.25s;
    pointer-events: none;
}
.content_block:hover button {
    background: white;
    color: #053456;
    transition: background 0.25s, color 0.25s;
}

.content_block::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    background: url('vila-stinta.jpg') no-repeat center center / cover;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.5s;
}
.content_block:hover::before {
    transform: scale(1.05);
    transition: transform 0.5s;
}
.content_block.content_block__vila_may::before {
    background-image: url('vila-may.jpg');
}