.new-buttons {
    display:grid;
    grid-template-columns: max-content max-content;
    gap:19px;
    max-width: 540px;
    margin-bottom: 30px;
}
.new-buttons > a {
    padding:15px 0 15px 13px;
    display:grid;
    grid-template-columns: 36px auto;
    align-items: center;
    background: #FF3F1D;
    border: 1px solid #FF3F1D;
    border-radius: 10px;
    box-sizing: border-box;
}
.new-buttons > a svg path {
    fill:#fff;
}
.new-buttons > a span {
    color:#fff;
    text-align: center;
    border-left:1px solid #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 17px;
    padding: 0 21px 0 13px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.new-buttons > a.negative {
    background:#fff;
    color:#FF3F1D
}
.new-buttons > a.negative svg path {
    fill:#FF3F1D;
}
.new-buttons > a.negative span {
    color:#FF3F1D;
    border-left:1px solid #FF3F1D;
}
.new-buttons > a:hover {
    background:#FB7247;
    border: 1px solid #FB7247;
}
.new-buttons > a.negative:hover {
    background:#FF3F1D;
    border: 1px solid #FF3F1D;
}
.new-buttons > a.negative:hover svg path {
    fill:#fff;
}
.new-buttons > a.negative:hover span {
    color:#fff;
    border-left:1px solid #fff;
}
.button-callback {
    max-width: 238px;
}

.knopki-modal .modal-content {
    background: #F4F9FF;
    border-radius: 12px;
    border-left:none;
    padding-bottom: 10px;
}
.knopki-modal {
    max-width: 509px;
}
.knopki-modal .u-tc--modal-title {
    font-weight: 700;
    font-size: 26px;
    line-height: 104%;
    color:#3E4851;
    margin-bottom: 7px;
}
.knopki-modal .u-tc--modal-info {
    margin: 0 0 13px
}
.knopki-modal .p--holder-u span {
    font-weight: 600;
    font-size: 15px;
    line-height: 17px;
    color:#3E4851;
    margin-bottom: 7px;
    padding: 0;
}
.knopki-modal .c-form__inner-wrap textarea {
    min-height: auto;
    width:100%;
}

.knopki-modal label[for^="file-"] {
    display: grid;
    grid-template-columns: 50px auto; /* было 24px */
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px dashed #8293B0;
    box-sizing: border-box;
}

.knopki-modal label[for^="file-"]:hover {
   opacity: 0.75;
}

.knopki-modal label[for^="file-"]:active {
    transform: translateY(1px);
}

/* Иконка слева (через ::before) */
.knopki-modal label[for^="file-"]::before {
    content: "📎";
    font-size: 20px;
    line-height: 1;
}

/* Текстовый блок */
.knopki-modal label[for^="file-"] > span:first-of-type {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.knopki-modal label[for^="file-"] > span:first-of-type > span:first-child {
    font-weight: 500;
    font-size: 14px;
    line-height: 19px;
    color:#3E4851;
    margin-bottom: 0;
}

.knopki-modal label[for^="file-"] > span:first-of-type > span:last-child {
    font-weight: 400;
    font-size: 12px;
    line-height: 19px;
    color:#8A92A2;
    margin-bottom: 0;
}

.knopki-modal label[for^="file-"] .wpcf7-form-control-wrap {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    z-index: 10;
    cursor: pointer;
}
.knopki-modal label[for^="file-"] input[type="file"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-height: 100% !important;
    height: 100% !important;
    opacity: 0;
    cursor: pointer;
    z-index: 11;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.knopki-modal .agree-form {
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
}

.knopki-modal label[for^="file-"] .file-icon {
    width: 50px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #8293B0;
    grid-column: 1;
    grid-row: 1;
    animation: fadeIn 0.3s ease;
}

.knopki-modal label[for^="file-"].has-file::before {
    display: none;
}

.knopki-modal label[for^="file-"]:has(.file-icon)::before {
    content: none;
}

.knopki-modal label[for^="file-"] .file-icon {
    animation: fadeIn 0.3s ease;
}

.knopki-modal label[for^="file-"]::after {
    content: "Заменить фото";
    font-size: 13px;
    line-height: 17px;
    color: #466C8B;
    font-weight: 500;
    grid-column: 2;
    justify-self: end;
    align-self: center;
    display: none; /* скрыто по умолчанию */
    cursor: pointer;
    border-bottom: 1px dashed #466C8B;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.knopki-modal label[for^="file-"].has-file::after {
    display: block;
}

.knopki-modal .c-action--modal {
    width:100%;
    min-height: 53px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

.okno-form {
    border-radius: 12px;
    background: url(../img/okno-form.jpg) #F4F9FF right center no-repeat;
    background-size:contain;
    border-left: 6px solid #FF3F1D;
    padding:32px 0 18px 42px;
    margin-bottom: 30px;
    color:#3E4851;
}
.okno-form-part {
    max-width: 55%;
}
.okno-form-head {
    font-weight: 700;
    font-size: 36px;
    line-height: 44px;
}
.okno-form-subhead {
    font-weight: 700;
    font-size: 26px;
    line-height: 34px;
    margin-bottom: 13px;
}
.okno-form-desc {
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 28px;
}
.okno-form-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap:9px;
    margin-bottom: 29px;
}
.okno-form-cards > div {
    padding:13px;
    background: #fff;
    display:flex;
    flex-wrap: nowrap;
    align-items: center;
    gap:18px;
    border-radius: 4px;
    border: 1px solid #E1E8F0
}
.okno-form-cards > div span {
    font-weight: 700;
    font-size: 13px;
    line-height: 17px;
}


@media(max-width:767px) {
    .new-buttons {
        grid-template-columns: 1fr;
        gap:8px
    }
    .button-callback {
        max-width: 100%;
    }
    .knopki-modal .u-tc--modal-title {
        font-size: 22px;
    }
    .knopki-modal .u-tc--modal-info {
        font-size: 14px;
    }
}