:root {
    --cap-height: calc(1rem * 12.5 / 16);
    --cap-ratio: calc(1 / 0.698);
    --width: 580px;
    --bg: rgba(1, 1, 1, 0.1);
}
body {
    font-family: Arial, sans-serif;
    font-size: calc(var(--cap-height) * var(--cap-ratio));
    line-height: 1.5;
    margin: 40px 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: var(--bg);
}
p,
dl,
h1,
h2 {
    margin: 0;
    padding: 0;
}
p,
h1,
h2,
h3 {
    overflow-wrap: break-word;
}
h1,
h2 {
    margin-top: 30px;
}
h1 {
    font-size: 1.7em;
}
h2 {
    font-size: 1.4em;
}
a {
    color: inherit;
}
img {
    display: block;
}
.page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.about {
    width: 96vw;
    max-width: var(--width);
    gap: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 1);
    border-radius: 10px;
}
.about_inner {
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 10px;
}
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.content > * {
    width: 96vw;
    max-width: var(--width);
}
.projects {
    --width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin: 30px 0;
}
.projects > * {
    width: 96vw;
    max-width: var(--width);
}
.contacts {
    display: flex;
    gap: 25px;
    justify-content: flex-start;
}
.project {
    display: flex;
    flex-direction: row;
    gap: 30px;
}
.project-info {
    width: calc(var(--width) - 30px - 600px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.project-info h2 {
    margin-top: 0;
}
.project-img {
    width: 600px;
}
.project-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.project-info dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    grid-gap: 5px 10px;
}
@media only screen and (max-device-width: 480px) {
    :root {
        --cap-height: calc(1rem * 18 / 16);
    }
}
@media (max-width: 1000px) {
    .project {
        flex-direction: column;
    }
    .project-info {
        width: 600px;
        min-height: unset;
    }
}
