@font-face {
    font-family: 'Alumni Sans';
    src: url('./fonts/AlumniSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Alumni Sans Light';
    src: url('./fonts/AlumniSans-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto for Learning';
    src: url('./fonts/RobotoforLearning-Regular_0.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}
img { user-select: none; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background-color: #FCFCFC;
    color: #212121;
}
a {
    color: white;
    text-decoration: none;
}

.container {
    padding: 0 23.2vh;
    width: 100%;
    margin-top: 11.8vh;
}
.flex-row {
    display: flex;
    flex-direction: row;
}
.flex-column {
    display: flex;
    flex-direction: column;
}

header {
    background-image: url(./images/title_background.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8.9vh 0;
    width: 75.1vh;
    gap: 2.2vh;
}
.header-text {
    text-align: center;
    color: white;
    font-family: 'Alumni Sans';
    font-size: 9vh;
    line-height: 82%;
    text-align: center;
    text-transform: uppercase;
}
.header-btns-group {
    gap: .6vh;
    justify-content: center;
    align-items: center;
}
.header-btn {
    transition: .3s;
    background-color: #FF0000;
    border-radius: 50vh;
    padding: 1vh 6.6vh;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.header-btn-top-text {
    font-family: 'Bahnschrift';
    font-style: normal;
    font-weight: 700;
    font-size: 2.2vh;
    line-height: 154.18%;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;
 }
 .header-btn-bottom-text {
    font-size: 1.6vh;
 }
.header-btn:hover {
    transition: .3s;
    background-color: #ff9393;
    transform: scale(101%);
}
.header-phone-img {
    width: 6.2vh;
    height: 6.2vh;
}


.h-text {
    font-family: 'Alumni Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 7.4vh;
    line-height: 82%;
    max-width: 98.9vh;
    margin-bottom: 3vh;

    color: #212121;
}
.rubl-sign {
    font-family: 'Roboto for Learning';
    font-size: 5vh;
}

.contract-salary-state {
    font-family: 'Alumni Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 4.6vh;
    line-height: 82%;
    margin-bottom: 4.2vh;
}
.contract-salary-state h2 {
    font-family: 'Alumni Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 4.6vh;
    line-height: 82%;
}
.contract-salary-state h3 {
    font-family: 'Arial';
    font-style: normal;
    font-weight: 300;
    font-size: 2.2vh;
    line-height: 82%;
    margin-top: 1vh;
}

.contract-salary-card {
    transition: .2s;
    background: #F2F2F2;
    border-radius: 1vh;
    padding: 1.2vh;
    justify-content: space-between;
    width: 76vh;
    min-height: 15vh;
}
.contract-salary-card:hover {
    transition: .2s;
    transform: scale(100.3%);
    background: #e2e2e2;
}
.contract-salary-info {
    padding: .5vh 1vh;
}
.contract-salary-month {
    background-color: #FF0000;
    border-radius: 1vh;
    padding: .5vh 2.2vh;
    max-height: 4vh;
    color: white;
    font-family: 'Arial';
    font-style: normal;
    font-weight: 300;
    font-size: 2vh;
}
.contract-salary-top-text {
    font-family: 'Alumni Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 6.4vh;
    line-height: 82%;
}
.contract-salary-bottom-text {
    font-size: 2.4vh;
}
.additional-payments-card {
    background-color: white;
    border-radius: 1vh;
    padding: 3vh;
}
.additional-payments-top-text {
    font-family: 'Alumni Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 6.4vh;
    line-height: 82%;
    margin-bottom: 1vh;
}
.additional-payments-bottom-text {
    font-family: 'Arial';
    font-style: normal;
    font-weight: 500;
    font-size: 2vh;
    line-height: 82%;
    margin-bottom: 1vh;
}
.bonus-payments-card {
    max-width: 30vh;
    padding: 2vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}
.bonus-payments-img {
    width: 20.4vh;
    height: 20.4vh;
}
.bonus-payments-card div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 2vh;
    margin-bottom: 1vh;
}
.bonus-payments-bottom-text {
    text-align: center;
    font-size: 2vh;
}
.bonus-payments-top-text {
    font-family: 'Alumni Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 6.4vh;
    line-height: 82%;
}

.social-assurance-card {
    background: #F2F2F2;
    border-radius: 1vh;
    padding: 2.4vh;
    display: flex;
    justify-content: space-between;
    margin: 0 20vh;
}
.social-assurance-title {
    font-family: 'Alumni Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 4.8vh;
    line-height: 82%;
    color: #0000FF;
}
.social-assurance-info {
    max-width: 50vh;
}
.social-assurance-text {
    font-size: 2vh;
}
.transfer-img {
    width: 5vh;
    height: 5vh;
}
.transfer-text {
    color: white;
    font-size: 2vh;
}
.transfer-card {
    gap: 2vh;
}

.form-section {
    background-image: url('./images/application-background.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    min-height: 80vh;
    justify-content: center;
    align-items: center;
}
form {
    background-color: #F2F2F2;
    border-radius: 1vh;
    padding: 3vh;
}
form div {
    margin: 2vh 0;
    display: flex;
    gap: 2vh;
    justify-content: center;
}
form div label {
    font-size: 2vh;
}
form div input {
   width: 3vh;
   height: 3vh;
}
form div label a {
    color: #5B79FF;
    text-decoration: underline;
}

footer {
    background-color: #212121;
    justify-content: space-between;
}
footer div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
}
footer ul li a {
    font-size: 2.2vh;
    color: #BCBCBC;
}
footer ul li a:hover {
    color: #ebebeb;
}
.footer-politics {
    font-size: 2.2vh;
    color: #BCBCBC;
}
.footer-politics:hover {
    color: #ebebeb;
}
.footer-phone {
    color: white;
    font-size: 3vh;
}
.footer-phone:hover {
    color: rgb(205, 205, 205);
    font-size: 3vh;
}






.form-group {
    margin-bottom: 2vh;
}

label {
    display: block;
    margin-bottom: 1.4vh;
    color: #555;
    font-weight: 500;
    font-size: 2vh;
}

input {
    width: 100%;
    padding: 1.2vh 1.5vh;
    border: .1vh solid #ddd;
    border-radius: .6vh;
    font-size: 2.4vh;
    transition: all 0.3s;
}

input:focus {
    border-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 0.2vh rgba(255, 0, 0, 0.2);
}

button {
    transition: .3s;
    background: linear-gradient(135deg, #ff0000 0%, #ff0000 100%);
    color: white;
    border: none;
    border-radius: .6vh;
    padding: 1.4vh;
    width: 100%;
    font-size: 2.6vh;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transition: .3s;
    background: linear-gradient(135deg, #ff2121 0%, #ff6a6a 100%);
    box-shadow: 0 .5vh 1.5vh rgba(0, 0, 0, 0.2);
}

button:active {
    transform: linear-gradient(135deg, #ffdddd 0%, #ffdddd 100%);
    color: black;
}

.submit-button:disabled {
    background: linear-gradient(135deg, #9b9b9b 0%, #474747 100%);
    cursor: not-allowed;
}
.submit-button:disabled:hover {
    background: linear-gradient(135deg, #9b9b9b 0%, #474747 100%);
    box-shadow: none;
    color: white;
    cursor: not-allowed;
}

.message {
    max-width: 40vh;
    margin-top: 2vh;
    padding: 1vh;
    border-radius: .6vh;
    text-align: center;
    display: none;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: .1vh solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: .1vh solid #f5c6cb;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 1vh;
}

.spinner {
    border: .4vh solid rgba(0, 0, 0, 0.1);
    border-left-color: #6a11cb;
    border-radius: 50%;
    width: 3vh;
    height: 3vh;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Мобильные стили */
@media (max-width: 768px) {
    .container {
        padding: 0 4vh !important;
        margin-top: 6vh;
    }
    
    /* Header */
    header {
        height: 60vh;
        background-size: cover;
        background-position: center;
        background-image: url(./images/background-mobile.jpg);
    }
    
    .header {
        width: 100%;
        padding: 4vh 0;
        gap: 3vh;
    }
    
    .header-text {
        font-size: 4.5vh;
        line-height: 90%;
    }
    
    .header-btns-group {
        flex-direction: column;
        gap: 2vh;
    }
    
    .header-btn {
        padding: 2vh 4vh;
        width: 100%;
        text-align: center;
    }
    
    .header-phone-img {
        display: none;
    }
    
    /* Основные заголовки */
    .h-text {
        font-size: 4vh;
        line-height: 90%;
        text-align: center;
        margin-bottom: 4vh;
    }
    
    /* Секция зарплат */
    #salary .flex-row {
        flex-direction: column;
        gap: 4vh;
    }
    
    .contract-salary-card {
        width: 100%;
        min-height: auto;
        flex-direction: column;
        gap: 2vh;
        padding: 3vh 2vh;
    }
    
    .contract-salary-month {
        align-self: flex-start;
        max-height: none;
        padding: 1vh 3vh;
    }
    
    .contract-salary-state {
        font-size: 3.5vh;
        margin-bottom: 3vh;
        text-align: center;
    }
    
    .contract-salary-state h2 {
        font-size: 3.5vh;
    }
    
    .contract-salary-top-text {
        font-size: 4.5vh;
    }
    
    .contract-salary-bottom-text {
        font-size: 2vh;
    }
    
    /* Дополнительные выплаты */
    #additional-payments {
        padding: 4vh 4vh !important;
    }
    
    #additional-payments .flex-row {
        flex-direction: column;
        gap: 3vh;
    }
    
    .additional-payments-card {
        text-align: center;
        padding: 3vh 2vh;
    }
    
    .additional-payments-top-text {
        font-size: 4.5vh;
    }
    
    /* Бонусные выплаты */
    #bonus-payments .flex-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3vh;
    }
    
    .bonus-payments-card {
        max-width: 45%;
        min-width: 140px;
    }
    
    .bonus-payments-img {
        width: 12vh;
        height: 12vh;
    }
    
    .bonus-payments-top-text {
        font-size: 3.5vh;
    }
    
    .bonus-payments-bottom-text {
        font-size: 1.8vh;
    }
    
    /* Социальные гарантии */
    .social-assurance-card {
        flex-direction: column;
        margin: 0 !important;
        gap: 3vh;
        padding: 4vh;
    }
    
    .social-assurance-title {
        font-size: 3.5vh;
        text-align: center;
    }
    
    .social-assurance-info {
        max-width: 100%;
    }
    
    .social-assurance-text {
        font-size: 1.9vh;
        margin-bottom: 1vh;
    }
    
    /* Трансфер */
    #transfer {
        flex-direction: column;
        padding: 4vh 4vh !important;
        gap: 4vh;
    }
    
    #transfer .h-text {
        max-width: 100%;
        text-align: center;
    }
    
    .transfer-card {
        align-items: center;
        gap: 2vh;
        margin-bottom: 2vh;
    }
    
    .transfer-img {
        width: 4vh;
        height: 4vh;
        flex-shrink: 0;
    }
    
    /* Форма */
    .form-section {
        min-height: 60vh;
        padding: 4vh;
        background-image: none;
    }
    
    form {
        width: 100%;
        max-width: 400px;
    }
    
    form div {
        align-items: flex-start;
        gap: 1vh;
    }
    
    form div label {
        font-size: 1.8vh;
    }
    
    /* Футер */
    footer {
        flex-direction: column !important;
        padding: 4vh 4vh !important;
        gap: 4vh;
        text-align: center;
    }
    
    footer div {
        align-items: center;
        padding: 3vh 3vh;
    }
    
    footer ul li a {
        font-size: 2vh;
        padding-bottom: 5vh;
    }
    
    .footer-phone {
        font-size: 2.5vh;
    }
    
    .footer-politics {
        font-size: 1.9vh;
        text-align: center;
    }
    
    /* Общие улучшения для мобильных */
    .rubl-sign {
        font-size: 3.5vh;
    }
    
    input, button {
        font-size: 2vh;
    }
    
    label {
        font-size: 1.9vh;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .container {
        padding: 0 2vh !important;
    }
    
    .header-text {
        font-size: 3.5vh;
    }
    
    .h-text {
        font-size: 3.2vh;
    }
    
    .bonus-payments-card {
        max-width: 100%;
        min-width: auto;
    }
    
    #bonus-payments .flex-row {
        flex-direction: column;
    }
    
    .contract-salary-top-text,
    .additional-payments-top-text,
    .bonus-payments-top-text {
        font-size: 3.5vh;
    }
    
    .social-assurance-card {
        padding: 2vh;
    }
}

/* Улучшения для горизонтальной ориентации */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        height: 80vh;
    }
    
    .header-text {
        font-size: 3.5vh;
    }
    
    .header-btns-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .header-btn {
        flex: 1;
        min-width: 45%;
    }
}

/* Предотвращение масштабирования при фокусе на мобильных устройствах */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px; /* Предотвращает масштабирование в iOS */
    }
}