* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #202124;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    width: 100%;
    text-align: center;
    padding: 30px 20px 20px;
    border-bottom: 1px solid #eeeeee;
}

.logo {
    width: 150px;
    max-width: 60%;
    height: auto;
    display: block;
    margin: 0 auto 12px;
}

.site-title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.languages {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}

.languages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 34px;
    padding: 0 9px;

    border: 1px solid #dddddd;
    border-radius: 7px;

    background: #ffffff;

    text-decoration: none;
    font-size: 13px;
    font-weight: 600;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.languages a:hover {
    border-color: #999999;
}

.languages a.active {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
}

.main {
    flex: 1;
    width: 100%;
    padding: 32px 18px 50px;
}

.container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

h1 {
    margin: 0 0 14px;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    margin: 34px 0 12px;

    font-size: 21px;
    line-height: 1.35;
}

p {
    margin: 0 0 18px;

    line-height: 1.65;
    color: #555555;
}

.question {
    margin-top: 30px;
}

.question-label {
    display: block;

    margin-bottom: 7px;

    font-size: 17px;
    line-height: 1.45;
    font-weight: 600;
}

.field-status {
    margin-bottom: 12px;

    font-size: 13px;
    color: #777777;
}

textarea {
    display: block;

    width: 100%;
    min-height: 130px;

    padding: 14px;

    border: 1px solid #cccccc;
    border-radius: 9px;

    background: #ffffff;
    color: #202124;

    font: inherit;
    font-size: 16px;
    line-height: 1.5;

    resize: vertical;

    transition: border-color 0.15s ease;
}

textarea:focus {
    outline: none;
    border-color: #444444;
}

.choice-list {
    display: grid;
    gap: 10px;
}

.choice {
    display: flex;
    align-items: center;
    gap: 11px;

    width: 100%;
    min-height: 50px;

    padding: 11px 14px;

    border: 1px solid #dddddd;
    border-radius: 9px;

    background: #ffffff;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.choice:hover {
    border-color: #aaaaaa;
    background: #fafafa;
}

.choice input {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;
    margin: 0;

    cursor: pointer;
}

.choice span {
    line-height: 1.4;
}

.consent {
    margin-top: 36px;
    padding-top: 28px;

    border-top: 1px solid #eeeeee;
}

.consent-box {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    margin-top: 18px;

    cursor: pointer;
}

.consent-box input {
    flex: 0 0 auto;

    width: 19px;
    height: 19px;
    margin: 2px 0 0;

    cursor: pointer;
}

.consent-box span {
    line-height: 1.55;
    color: #444444;
}

.publication {
    margin-top: 28px;
}

.submit-button {
    appearance: none;

    display: block;
    width: 100%;

    margin-top: 34px;
    padding: 15px 20px;

    border: 0;
    border-radius: 9px;

    background: #111111;
    color: #ffffff;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        opacity 0.15s ease,
        transform 0.05s ease;
}

.submit-button:hover {
    opacity: 0.9;
}

.submit-button:active {
    transform: translateY(1px);
}

.message {
    padding: 28px;

    border: 1px solid #e5e5e5;
    border-radius: 12px;

    text-align: center;
}

.message h1 {
    font-size: 25px;
}

.message p:last-child {
    margin-bottom: 0;
}

.success-badge {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #f1f1f1;

    font-size: 29px;
    font-weight: 700;
}

.share {
    margin-top: 35px;
    text-align: center;
}

.share-buttons {
    display: grid;
    gap: 10px;

    margin-top: 20px;
}

.share-button {
    display: block;

    padding: 14px 18px;

    border: 1px solid #d8d8d8;
    border-radius: 9px;

    background: #ffffff;

    text-decoration: none;
    font-weight: 600;

    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.share-button:hover {
    border-color: #999999;
    background: #fafafa;
}

.footer {
    width: 100%;

    padding: 22px 18px;

    border-top: 1px solid #eeeeee;

    text-align: center;

    font-size: 13px;
    color: #777777;
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .header {
        padding: 22px 16px 18px;
    }

    .logo {
        width: 130px;
        max-width: 70%;
    }

    .site-title {
        font-size: 18px;
    }

    .languages {
        gap: 6px;
    }

    .languages a {
        min-width: 36px;
        height: 34px;
        padding: 0 8px;
    }

    .main {
        padding: 26px 14px 40px;
    }

    h1 {
        font-size: 25px;
    }

    h2 {
        font-size: 20px;
    }

    .question {
        margin-top: 26px;
    }

    .question-label {
        font-size: 16px;
    }

    textarea {
        min-height: 120px;
    }

    .message {
        padding: 24px 18px;
    }
}

@media (max-width: 380px) {
    .header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .languages a {
        min-width: 34px;
        padding: 0 7px;
        font-size: 12px;
    }

    h1 {
        font-size: 23px;
    }

    .choice {
        padding: 10px 12px;
    }
}