:root {
    --gorizont-padding: 10%;
}

body {
    margin: 0;
    color: #FFFFFF;
    font-family: sans-serif;
    font-size: 19px;
    font-weight: 100;
    line-height: 1.35;
    overflow-y: scroll;
    min-height: 100vh;
}

main {
    display: grid;
    min-height: 100vh;
}

section {
    padding-left: var(--gorizont-padding);
    padding-right: var(--gorizont-padding);
    background-color: #212121cc;
    padding-bottom: 20px;
    padding-top: 20px;
    position: relative;
}

.interests,
.message {
    padding-left: max(var(--gorizont-padding), 80px);
    padding-right: max(var(--gorizont-padding), 80px);
}

section:nth-child(even) {
    background-color: #ffffffcc;
    color: #000000cc;
}

.winners article,
.about article {
    align-items: center;
}

review-item {
    flex: 260px;
}

.contacts a:before {
    content: "";
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.contacts a {
    width: 170px;
    text-align: center;
}

.contacts a[href*="t.me"]:before {
    background-image: url(../img/telegram.svg);
    background-size: 54px;
}

.contacts a[href^="skype"]:before {
    background-image: url(../img/skype-min.png);
}

.contacts a[href*="vk."]:before {
    background-image: url(../img/vk-com-min.png);
}

.contacts a[is="e-dog"]:before {
    background-image: url(../img/email-min.png);
}

cert-item {
    background-image: url(../img/cert.webp);
    background-size: cover;
    font-size: 18px;
    max-width: 190px;
    padding: 40px 20px;
    background-position: center;
    text-align: center;
}

.certifications b {
    font-weight: bold;
}

.interests b,
.about b {
    font-weight: inherit;
}

h3 {
    position: absolute;
    font-size: smaller;
    font-weight: 100;
    text-transform: lowercase;
    opacity: 0.5;
    transform: rotate(-45deg);
    left: -14px;
    top: 10px;
    width: 100px;
    text-align: center;
    font-size: 14px;
}

section.message {
    font-weight: bolder;
    font-size: 110%;
}

.bg {
    position: fixed;
    transform: translate(-50%, 0) skew(-30deg, 2deg);
    left: 50%;
    top: 0;
    font-size: 14px;
    white-space: pre;
    line-height: 1;
    font-family: monospace;
    z-index: -1;
    max-height: 100vh;
    max-width: 60vw;
}

.social a:before {
    content: "";
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.social a {
    width: 70px;
}

.social a[href*="facebook"]:before {
    background-color: #3c5a98;
    background-image: url(../img/fb.svg);
}

.social a[href*="vk."]:before {
    background-color: #48729e;
    background-image: url(../img/vk.svg);
}

.social a[href*="ok.ru"]:before {
    background-color: #ff9f4d;
    background-image: url(../img/ok.svg);
}

input[type="submit"]:not(:hover),
.contacts a:not(:hover),
.social a:not(:hover) {
    opacity: 0.85;
}

#priz {
    width: auto;
    display: none;
}

.status {
    position: relative;
}

.status:before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: lime;
    bottom: 0;
    position: absolute;
    right: 0;
    margin: 2px;
}

form {
    position: relative;
}

speech-to-text {
    display: inline-block;
    content: "";
    width: 48px;
    height: 48px;
    background-image: url(../img/speak.png);
    background-position: -10px 0;
    background-repeat: no-repeat;
    position: absolute;
    transform: translate(0, -10px);
    right: 0;
    top: 0;
    content: "говорите";
    cursor: pointer;
}

speech-to-text:hover:after {
    top: 50%;
    content: "написать ртом";
    position: absolute;
    transform: translate(-100%, -50%);
    text-align: right;
    font-size: 16px;
    white-space: nowrap;
    background: black;
    padding: 10px;
    border-radius: 8px;
    color: yellow;
}

speech-to-text[recording]:after {
    content: "внимательно слухаю";
}

speech-to-text[error]:after {
    content: "ошибочка вышла: " attr(error);
}

textarea[recording] {
    opacity: 0.65;
}