*,
*:after,
*:before {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    transition: .3s ease-in-out;
}

.container {
    width: 100%;
    display: grid;
    justify-content: center;
    grid-template-rows: 250px max-content 881px;
    background: white;
}

.content {
    grid-row: 2/3;
    display: grid;
    background: white;
    padding: 20px 0;
    justify-content: center;
    width: 100%;
    a {
        text-decoration: none;
        color: black;
    }

    a:hover {
        text-decoration: none;
        color: black;
    }

    a:active {
        text-decoration: none;
        color: black;
    }
}

.start {
    margin: 100px 0;

    h1 {
        font-size: 4rem;
        text-align: center;
        line-height: 78px;
        border-bottom: black 1px solid;
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    h3 {
        text-align: center;
        margin: 0 0 40px 0;

        a {
            text-decoration: underline;
            color: #8204AE99;
        }
    }
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 930px;
    margin: 0 auto;
}

.info-account,
.form {
    display: flex;
    flex-direction: column;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-size: 2rem;
}

#photo-input {
    display: none; /* скрываем стандартный input */
}

.custom-file {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 5px 0 22px 0;
}

.custom-file-btn {
    font-size: 2rem;
    border: 5px solid transparent;
    border-radius: 50px;
    background:
            linear-gradient(white 0 0) padding-box,
            linear-gradient(90.00deg, #00B2FF99, #8204AE99 100%) border-box;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 50px;
    padding: 15px;
    align-items: center;
    text-align: center;
    width: max-content;
}

.custom-file-btn:hover {
        background:
            linear-gradient(90.00deg, #00B2FF99, #8204AE99 100%) border-box,
            linear-gradient(white 0 0) padding-box;
        color: white;
    }

.file-name {
    font-size: 2rem;
    color: #8B8282;
}

.current-photo{
    font-size: 2rem;
    margin: 5px 0 22px 0;
}

input[type=text],
input[type=password],
.auto[type=text],
.auto[type=password],
.auto[type=email],
.account_fields {
    font-size: 2rem;
    width: 930px;
    padding: 15px;
    margin: 5px 0 22px 0;
    display: inline-block;
    color: #8B8282;
    border: 5px solid transparent;
    border-radius: 50px;
    background:
        linear-gradient(white 0 0) padding-box,
        linear-gradient(90.00deg, #00B2FF99, #8204AE99 100%) border-box;
}

input[type=text]:focus,
input[type=password]:focus,
.auto[type=text]:focus,
.auto[type=password]:focus {
    outline: none;
}

input[type='radio'],
input[type='checkbox'] {
    width: 20px;
    height: 20px;
    accent-color: #8204AE;
    cursor: pointer;
}

input:focus {
    border-color: transparent;
    box-shadow: 0 0 10px rgba(130, 4, 174, 0.3);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
input.auto:-webkit-autofill,
input.auto:-webkit-autofill:hover,
input.auto:-webkit-autofill:focus,
input.auto:-webkit-autofill:active {
    border: 5px solid #8204AE99;
    -webkit-text-fill-color: black;
    -webkit-box-shadow: 0 0 0px 1000px white inset;
}

.flex-radio {
    display: flex;
    gap: 10px;
    margin: 0 0 30px 16px;
    font-size: 1.5rem;
}

.flex-btn {
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: black;

    button {
        cursor: pointer;
        font-size: 2rem;
        width: 285px;
        height: 80px;
        border: 5px solid transparent;
        border-radius: 50px;
        background:
            linear-gradient(white 0 0) padding-box,
            linear-gradient(90.00deg, #00B2FF99, #8204AE99 100%) border-box;
    }

    button:hover {
        background:
            linear-gradient(90.00deg, #00B2FF99, #8204AE99 100%) border-box,
            linear-gradient(white 0 0) padding-box;
        color: white;
    }
}

.flex-items-account {
    margin: 74px 0 0 0;
    display: flex;
    justify-content: space-between;
    gap: 129px;
}

.image-account {
    width: 400px;
    height: 360px;
    border: 5px solid transparent;
    border-radius: 50px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(white 0 0) padding-box,
        linear-gradient(90.00deg, #00B2FF99, #8204AE99 100%) border-box;

    img {
        /* transform: scale(0.7); */
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.click-block-1 {
    font-family: "Inter", sans-serif;
    border-left: 2px solid black;
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: 508px;
    height: 1080px;
    background: white;
    color: black;
    /* Начальное состояние: за границей справа */
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 1000;

    ul {
        margin: 80px 0 0 0;
        padding: 0 0 15px 0;
    }

    li {
        display: inline;
        list-style: none;
        padding: 0 15px;
    }

    a {
        text-decoration: none;
        color: black;
    }

    a:hover {
        text-decoration: none;
        color: black;
    }

    a:active {
        text-decoration: none;
        color: black;
    }

    svg {
        fill: none;
        cursor: pointer;
    }
}

/* Активное состояние: показ и перемещение позиции */
.click-block-1.fixed-top {
    transform: translateX(0);
    opacity: 1;
}

.list-items-1 {
    margin: 110px 45px 0 45px;
    border-top: 2px black solid;
    display: flex;
    flex-direction: column;

    .items {
        ul {
            padding: 70px 0 0 0;
            margin: 0;

            li {
                display: block;
                padding: 15px 0;
            }
        }

        display: flex;
        flex-direction: column;
    }
}

@media (width <=1590px) {
    .container {
        grid-template-rows: max-content max-content max-content;
        background: white;
    }

    .flex-items-account {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

@media (width <=1290px) {
    .start {
        margin: 20px 0 80px 0;
    }

    .flex-items-account {
        margin: 50px 0 0 0;
        gap: 50px;
    }
}

@media (width <= 1040px) {
    .container {
        justify-content: stretch;
        grid-template-rows: repeat(3, max-content);
    }

    .content {
        justify-content: stretch;
        padding: 20px 40px 0 40px;
    }

    .start {
        width: 100%;
    }

    input[type=text],
    input[type=password],
    .auto[type=text],
    .auto[type=password],
    .auto[type=email],
    .account_fields {
        width: 100%;
    }

    .info-account,
    .form {
        width: 100%;
    }

    form {
        width: 100%;
    }
}

@media (width <=750px) {

    input[type=text],
    input[type=password],
    .auto[type=text],
    .auto[type=password],
    .auto[type=email],
    .account_fields,
    .custom-file,
    .custom-file-btn,
    .file-name,
    .current-photo {
        font-size: 1.5rem;
    }

    .info-account,
    .form {
        font-size: 1.5rem;
        width: 100%;
    }

    .flex-btn {
        flex-direction: column;
        gap: 20px;

        button {
            font-size: 1.5rem;
            padding: 15px;
            height: 100%;
        }
    }

    .click-block-1 {
        width: 300px;
    }
}

@media (width <=550px) {
    .content {
        height: max-content;
        width: 100%;
        padding: 0 20px;
    }

    .start {
        align-content: center;
        margin: 80px 0;
        h1 {
            line-height: 50px;
            font-size: 3rem;
        }

        h3 {
            margin: 0;
        }
    }

    input[type=text],
    input[type=password],
    .auto[type=text],
    .auto[type=password],
    .auto[type=email],
    .account_fields,
    .custom-file,
    .custom-file-btn,
    .file-name,
    .current-photo {
        margin: 0 0 10px 0;
    }

    .form {
        margin: 10px 0 0 0;
    }

    .flex-radio {
        margin: 10px 0 50px 16px;
    }

    .flex-btn {
        gap: 10px;
    }

    .flex-items-account {
        flex-direction: column;
        width: 100%;
        margin: 20px 0 0 0;
        gap: 10px;
    }

    .image-account {
        width: auto;
        height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;

        /* img {
            transform: translate(0, 0);
            max-width: 300px;
            height: auto;
        } */
    }

    .click-block-1 {
        width: 250px;
    }

    .list-items-1 {
            margin: 67px 45px 0 45px;
            .items:nth-child(2) {
                ul {
                    padding: 40px 0;
                }
            }
        }
}

/*изменение размера шрифта от окна браузера*/
@media (350px <=width <=1440px) {
    html {
        font-size: clamp(12px, 10.716px + 0.367vw, 16px);
    }
}