* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    background: #b3ccfa;
    background-image: linear-gradient(to right, #b3ccfa, white);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 120px;
}

header {
    background: white;
    width: 100%;
    padding: 7px 2.5%;
    border-bottom: 2px solid black;
    color: black;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

header h4 {
    font-size: 40px;
    margin: 0;
}

header a {
    position: absolute;
    left: 10px;
    color: black;
}
header, header * {
    text-decoration: none;
}

.forma {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.forma h1 {
    font-size: 28px;
    font-weight: bold;
    color: #4d4d4d;
    margin-bottom: 30px;
    text-align: center;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #4d4d4d;
    box-shadow: 0 0 8px rgba(77, 77, 77, 0.2);
}

.form-control:hover {
    border-color: #b0b0b0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-success {
    background-color: #749be1;
    color: white;
}

.btn-success:hover {
    background-color: #497ad3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-success:active {
    transform: translateY(0);
}

/* Адаптация для мобильных устройств */
@media (max-width: 600px) {
    .forma {
        margin: 30px 20px;
        padding: 20px;
    }
    
    .forma h1 {
        font-size: 24px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Анимация появления формы */
.forma {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}