.title-before-filter__block {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.title-before-filter__block-refresh-notice {
    font-weight: 700;
    color: #898989;
    padding: 0 15px;
}
.free-masters__block {
    margin-bottom: 20px;
}
.free-masters__block-header {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    font-weight: 700;
    cursor: pointer;
    color: #898989;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    transition: all .2s;
}
.free-masters__block-header::after {
    display: block;
    content: '';
    background: url(\icons/arrow-bottom-red.svg) center no-repeat;
    width: 12px;
    height: 8px;
    transition: all .2s;
}
.free-masters__block-body {
    font-size: 12px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0 20px;
    background: #fff;
    margin: 2px 0;
    border-radius: 10px;
    gap: 10px;
    height: 0;
    transition: all .2s;
    overflow: hidden;
}
.free-masters__block.active .free-masters__block-header {
    color: #000;
    border-radius: 10px 10px 0 0;
}
.free-masters__block.active .free-masters__block-header::after {
    transform: rotate(-180deg);
}
.free-masters__block.active .free-masters__block-body {
    border-radius: 0 0 10px 10px;
    padding: 20px;
    height: auto;
}
.free-masters__block-body {

}
.free-masters__block-body a {
    width: 24%;
    font-weight: 700;
    text-decoration: underline;
    color: #D00025;
}

/* Кнопка резюме */
.job-banner-minimal {
    background-color: white;
    border: 2px solid #dc143c;
    padding: 20px 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 25px;
}
.job-banner-minimal .text {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}
.job-banner-minimal .btn {
    background-color: #dc143c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.job-banner-minimal .btn:hover {
    background-color: #b91c3c;
    box-shadow: 0 2px 8px rgba(220,20,60,0.3);
}
/* Кнопка резюме */

/* Баннер над футером */

.feedback-section {
    display: flex;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 1440px;
    width: 100%;
    position: relative;
    height: 599px;
    align-items: center;
    margin: 50px auto 100px;
}

.content-area {
    padding: 60px 50px;
    z-index: 2;
    position: relative;
}

.main-title {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 24px;
    line-height: 1.2;
}

.description {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 40px;
    line-height: 1.6;
}

.form-container {

}

.form-group {
    margin-bottom: 24px;
}

.form-input {
    width: 100%;
    padding: 18px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    background: #F4F7F7;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.submit-button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.submit-button:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}
.laptop-area {
    position: relative;
    top: -20px;
    width: 50%;
}
.title-before-filter__switcher {
    display: none;
    height: 40px;
    background: #fff;
    margin: 0 15px 10px;
    border-radius: 5px;
    overflow: hidden;
}

.title-before-filter__switcher-option {
    flex: 0 1 50%;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
}
.title-before-filter__switcher-option.active {
    background: #D00025;
    color: #fff;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    display: none;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Баннер над футером */

@media (max-width: 767px) {
    .title-before-filter__switcher {
        display: flex;
    }
    .breadcrumb-cont {
        padding-left: 15px;
    }
    .main-title {
        font-size: 30px;
    }
    .feedback-section {
        height: auto;
        margin: 20px auto;
        flex-direction: column;
    }
    .content-area {
        padding: 20px;
    }
    .form-input {
        width: 88%;
    }
    .form-group, .submit-button {
        width: 287px;
    }
    .laptop-area {
        margin: 20px auto;
    }
    .laptop-area img {
        width: 100%;
    }
    .job-banner-minimal {
        margin: 16px;
    }
}
@media (max-width: 767px) {
    .title-before-filter__block {
        align-items: normal;
        flex-direction: column;
    }
    .title-before-filter__block-refresh-notice {
        font-size: 16px;
    }
    .free-masters__block-body a {
        width: 48%;
    }
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 32px 32px 0;
    position: relative;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0;
    padding-right: 40px;
}

.modal-close-button {
    position: absolute;
    top: 24px;
    right: 24px;
    background: url(/local/templates/account/images/close_mobile_booking.png) center no-repeat;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-body {
    padding: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.form-input {
    width: 90%;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    background: #f9fafb;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.textarea-input {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.modal-btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-primary {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-primary:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-secondary {
    background: white;
    color: #dc3545;
    border-color: #dc3545;
}

.btn-secondary:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.modal-btn:active {
    transform: translateY(0);
}

/* Анимация появления элементов */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 640px) {
    .modal {
        width: 95%;
        margin: 20px;
        border-radius: 12px;
    }

    .modal-header {
        padding: 24px 24px 0;
    }

    .modal-body {
        padding: 24px;
    }

    .modal-title {
        font-size: 20px;
        padding-right: 35px;
    }

    .modal-close-button {
        top: 20px;
        right: 20px;
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .form-input {
        padding: 14px 16px;
        font-size: 16px; /* Предотвращает зум на iOS */
    }

    .modal-btn{
        padding: 14px 20px;
        font-size: 15px;
    }

    .button-group {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .modal {
        width: calc(100% - 20px);
        margin: 10px;
    }

    .modal-header {
        padding: 20px 20px 0;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-title {
        font-size: 18px;
    }
}

@media (max-height: 600px) {
    .modal-overlay {
        align-items: flex-start;
        padding: 20px 0;
    }

    .modal {
        margin-top: 20px;
    }
}