.header {
    background-color: #164466;
}

body.main .cont {
    padding-bottom: 0;
}
.elc_form .elc_title {
    max-width: 522px;
    letter-spacing: 0.02em;
    letter-spacing: 0.05rem;
}
.elc_form .elc_text {
    max-width: 522px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}
.elc_form .elc_string input {       
    padding-left: 0;
}
.elc_form .elc_string label {
    top: 52px;
    letter-spacing: normal;
}
.elc_form {
    height: auto;
    margin-top: 0;
    margin-bottom: 0;
}
.elc_form form {  
    width: 522px;   
}
.elc_form .form_outer {
    position: static;
    height: auto;
    margin-top: 0;
    padding-top: 135px;
    padding-bottom: 66px;
}

.elc_form.tpl-black .elc_string textarea.error {
    border: 1px solid red !important;
}

#contacts .notice {
    max-width: 514px; 
    width: auto;
    text-align: left;
    margin-top: 24px;
    margin-left: 0;
    margin-right: 0;
    font-size: 14px;
    line-height: 1.29;
    display: block;
}

.elc_form.tpl-black {
    opacity: 1;
    background-color: #224d6e;
}



/* Блок файлов */
.elc_files_block {
    margin: 40px 0 20px;
}

.elc_files_top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.elc_files_label {    
    font-size: 20px;
    line-height: 1.4;
    text-transform: uppercase;
    color: #FFFFFF;
}

.elc_files_btn {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-family: inherit;
    font-size: 20px;		
    text-transform: uppercase;
    padding: 16px 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s;
}

.elc_files_btn:hover {    
    border-color: #e48b1f;
    color: #e48b1f;
}

.elc_files_hints {     
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    margin-bottom: 16px;
}

.elc_file_err {
    font-size: 14px;
    line-height: 1.4;
    color: #FF3838;
    display: none;
}

.elc_file_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.elc_file_tag {
    position: relative;
    overflow: hidden;    
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;		
    padding: 8px 12px;
}

.elc_file_tag_progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background-color: #E48B1F;
    transition: width 0.2s ease-out;
    z-index: 1;
}

.elc_file_tag_remove {
    width: 11px;
    height: 11px;
    background-image: url('data:image/svg+xml,<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg"><g opacity="0.5"><path d="M1 1L9.5 10" stroke="white"/><path d="M9.5 1L1 10" stroke="white"/></g></svg>');
    background-size: 11px 11px;
    background-repeat: no-repeat;        
    cursor: pointer;		
}

.elc_form .btn {
    margin-top: 40px;
}

.elc_form .elc_string {
    width: 100%;
}

/* Чекбокс согласия */
.elc_consent_wrap {
    display: flex;
    align-items: flex-start;
}

.elc_consent_label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: inherit;
    color: inherit;
}

.elc_consent_label span {
    max-width: 385px;
}

.elc_consent_checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    min-width: 24px;
    height: 24px;
    background-color: #fff;    
    cursor: pointer;
    margin-top: 2px;
    position: relative;
    flex-shrink: 0;
    margin-left: 0;
    margin-right: 0;
}

.elc_consent_checkbox:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%; 
    width: 5px;
    height: 9px;
    border: 2px solid #E48B1F;
    border-top: none;
    border-left: none;
    transform: translate(-50%, -65%) rotate(45deg);
}

.error-consent .elc_consent_label {
    color: red;
}

.error-consent .elc_consent_checkbox {
    border-color: red;
}

/* Автодополнение */
.elc_autocomplete_wrap {
    position: relative;
}

.elc_autocomplete_dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 11px);
    left: -20px;
    right: -20px;
    z-index: 100;
    background: #E48B1F;
    border-top: none;
    max-height: 260px;
    overflow-y: auto;    
}

.elc_autocomplete_dropdown::-webkit-scrollbar {
    width: 4px;
}
.elc_autocomplete_dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.elc_autocomplete_dropdown::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

.elc_autocomplete_list {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-top: 16px;
    padding-bottom: 16px;
}

.elc_autocomplete_item {
    font-size: 21.6px;
    line-height: 1.4;
    text-transform: capitalize;
    color: #FFFFFF;
    padding: 6px 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.elc_autocomplete_item:hover,
.elc_autocomplete_item.is-active {   
    color: #164466;
}

.elc_autocomplete_item mark {
    background: transparent;
    font-weight: 700;
    font-style: normal;
    color: inherit;
}

.support_feedback {
    text-align: center;
    border: 3px solid #1a4d72;
    padding: 32px;
    margin-bottom: 27px;
}

.support_feedback_links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.support_feedback_links .f-btn.center {
    width: auto;
    padding-left: 40px;
    padding-right: 40px;
    margin: 0;
}

body.service .cont {
    width: auto !important;
    max-width: 880px;
    padding-left: 20px;
    padding-right: 20px;
}

body.service .cont .support_feedback p {
    margin-bottom: 24px;
    line-height: 1.3;
}

body.service .cont .support_feedback p:first-child {
    margin-bottom: 16px;
}

body.service .cont .support_feedback p:last-child {
    margin-bottom: 0;
}

/* ─── Floating label ──────────────────────────────────────────── */
	.elc_fl {
		position: relative;
	}

	.elc_fl input::placeholder,
	.elc_fl textarea::placeholder {
		opacity: 0 !important;
		color: transparent !important;
	}

	.elc_fl .elc_fl__label {
		position: absolute;
		left: 0;
		top: 50%;
		transform: translateY(-50%);
		font-size: 14px;
		line-height: 1;
		color: rgba(255, 255, 255, 0.5);
		pointer-events: none;
		transition: top 0.2s ease, transform 0.2s ease, font-size 0.2s ease, color 0.2s ease;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
		text-transform: uppercase;
	}

	.elc_fl.textarea .elc_fl__label {
		top: 14px;
		left: 10px;
		transform: none;
	} 
	
	/* .elc_fl input:focus         ~ .elc_fl__label,
	.elc_fl input:not(:placeholder-shown) ~ .elc_fl__label {
		top: 0;
		transform: translateY(18px);
		font-size: 12px;
		color: #E48B1F;
	}  */

    .elc_fl input:focus         ~ .elc_fl__label,
    .elc_fl input ~ .elc_fl__label {
        color: #FFFFFF;
    }

 
	.elc_fl input:not(:placeholder-shown) ~ .elc_fl__label {
		top: 0;
		transform: translateY(18px);
		font-size: 12px;		
	} 

    .elc_fl input:focus ~ .elc_fl__label {
        color: #E48B1F;
        top: 0;
        transform: translateY(18px);
        font-size: 12px;
    } 

	.elc_fl.textarea textarea:focus ~ .elc_fl__label,
	.elc_fl.textarea textarea:not(:placeholder-shown) ~ .elc_fl__label {
        display: none;
		top: 0;
        left: 0;
		transform: translateY(20px);
		font-size: 12px;
		color: #E48B1F;
	}
    

	.elc_form.tpl-black .elc_string.elc_fl input:focus {
		border-bottom-color: #E48B1F !important;
		border-bottom-width: 3px !important;
	}

	.elc_form.tpl-black .elc_string.elc_fl textarea:focus {
		border-color: #E48B1F !important;
		outline: none;
	}

    .contacts-form .elc_string.textarea label {     
        left: 16px;
        top: 60px;       
        text-transform: unset;
    }

@media(max-width: 767px) {
    .elc_form form, .elc_form .elc_string {
        width: auto;
    }
    .elc_files_top {
        flex-wrap: wrap;
        margin-bottom: 16px;
    }

    .elc_files_label br {
        display: none;
    }

    .elc_files_top {
        width: 100%;
        flex: 0 0 100%;
    }

    .elc_files_btn {
        font-size: 16px;
        width: 100%;
        flex: 0 0 100%;
    }

    .elc_files_label {  
        font-size: 16px;
    }

    .elc_form .btn {
        width: 100%;
        margin-top: 24px;
    }

    .elc_form .elc_string input {
        text-overflow: ellipsis;
    }
    .elc_form .elc_string label {
        top: 40px;
    }
    .contacts-form.elc_form.tpl-black .elc_string input, .form-direktoru.elc_form.tpl-black .elc_string input {
        padding-bottom: 8px;        
    }  
    .elc_form .elc_string {
        padding-top: 0;
    }

    .contacts-form .elc_string.textarea {
        padding-top: 24px;
    }

    .elc_files_block {
        margin: 24px 0 20px;
    }

    #contacts .notice {
        margin-top: 0;
    }

    .elc_files_block {
        margin-bottom: 0;
    }

    .elc_files_top {  
        gap: 16px;   
    }

    .elc_form .form_outer {
        padding-top: 40px;
        padding-bottom: 0;
    }

    .support_feedback {
        padding: 22px;
    }

    body.service .cont .support_feedback p {
        margin-bottom: 16px;
    }

    body.service .cont .support_feedback p br {
        display: none;
    }

    .support_feedback_links {
        gap: 8px;
    }
    .support_feedback_links .f-btn.center {
        width: 100%;
        font-size: 16px;
    }

    body.service .cont .support_feedback a {
        color: #e48b1f;
    }

    /* .elc_fl input:focus         ~ .elc_fl__label,
	.elc_fl input:not(:placeholder-shown) ~ .elc_fl__label {
		top: 0;
		transform: translateY(10px);
		font-size: 12px;
		color: #E48B1F;
	} */

    .elc_fl input:focus         ~ .elc_fl__label,
    .elc_fl input ~ .elc_fl__label {
        color: #FFFFFF;
    }

 
	.elc_fl input:not(:placeholder-shown) ~ .elc_fl__label {
		top: 0;
		transform: translateY(10px);
		font-size: 12px;		
	} 

    .elc_fl input:focus ~ .elc_fl__label {
        color: #E48B1F;
        top: 0;
        transform: translateY(10px);
        font-size: 12px;
    } 

	.elc_fl.textarea textarea:focus ~ .elc_fl__label,
	.elc_fl.textarea textarea:not(:placeholder-shown) ~ .elc_fl__label {
		top: 0;
		transform: translateY(10px);
		font-size: 12px;
		color: #E48B1F;
	}

    .elc_autocomplete_item {
        font-size: 16px;
        line-height: 1.4;      
        padding: 8px 20px;        
    }

    .contacts-form .elc_string.textarea label {
        top: 42px;
        left: 16px;
        font-size: 16px;
        text-transform: none;
        /* text-overflow: ellipsis; */
        width: calc(100% - 30px);
        white-space: unset;
    }

    .elc_file_tags:has(.elc_file_tag) {
        margin-bottom: 24px;
    }

    .elc_form.tpl-black .elc_text {
        margin-left: auto;
        margin-right: auto;
    }

    .elc_autocomplete_dropdown {      
        left: 0;
        right: 0;      
    }

     .elc_form .elc_string label {
       font-size: 16px;
    }
}