div.news-items {
    word-wrap: break-word;
}
div.news-items img.news-image {
    float: left;
    margin: 0 4px 6px 0;
}
.news-time {
    color: #486DAA;
}
.modal-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    max-width: 500px;
    padding: 20px;
    z-index: 1001; /* Увеличиваем z-index чтобы было выше overlay */
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
}

.modal-box.is-active {
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 92, 175, 0.2);
    backdrop-filter: blur(5px);
    display: none;
    z-index: 1000;
}
.modal-close {
    filter: invert(0.7);
    position: absolute;
    top: 8px;
    right: 10px;
    cursor: pointer;
}
.results {
    display: none;
    font-size: 18px;
    font-weight: 600;
    min-height: 44px;
    line-height: 44px;
}
.form-container {
    padding: 20px;
    max-width: 500px; 
    margin: 0 auto; 
    overflow-x: hidden; 
    overflow-y: auto; 
    max-height: 90vh; 
}
.modal-content {
    border-left-style: solid;
    border-bottom-style: solid;
    border-top-style: solid;
    border-right-style: solid;
    border-radius: 20px;
    max-height: 866px;
}
.modal-content .title-main {
    font-size: 24px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 10px;
    text-transform: uppercase;
    padding-top: 20px;
    padding-left: 30px;
}
.modal-content .title-secondary {
    font-size: 24px;
    text-align: left;
    text-transform: uppercase;
    font-weight: bold;
    padding-left: 30px;
    padding-bottom: 20px;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
}
.input-group {
    position: relative;
margin-top:20px;
}
.input-group label {
    display: block;
    font-size: 14px;
}
.input-group input[type="text"],
.input-group input[type="tel"],
.input-group input[type="email"],
.input-group select {
    width: 100%; 
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #C2DFFD;
    background: transparent;
    font-size: 16px;
    outline: none;
}
.input-group input[type="tel"] {
    letter-spacing: 1px;
}
.input-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 12px;
    padding-right: 25px;
}
.file-input {
    border: none;
    border-bottom: 20px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    margin-top: 20px;
}
.file-input label {
    font-weight: normal;
    cursor: pointer;
    display: block;
    margin-bottom: 5px;
}
.file-details {
    font-size: 12px;
    color: #666;
}
.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}
.checkbox-group input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    margin-left: 0px;
    margin-bottom: 30px;
}
.checkbox-group label {
    font-weight: normal;
    font-size: 14px;
}
.input-group label[required]::after,
.input-group label:has(+ input[required])::after,
.input-group label:has(+ div input[required])::after {
    content: " *";
    color: red;
}
.checkbox-group input[required] + label::before {
    content: "* ";
    color: red;
}
.phone-input.invalid {
    border-color: red;
}
.phone-tip {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: none;
}
.phone-wrapper:focus-within .phone-tip {
    display: block;
}
.phone-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}
.region-select {
    flex: 0 0 75px;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    font-size: 16px;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 30px;
}
.phone-input {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    font-size: 16px;
    outline: none;
    letter-spacing: 1px;
}
@media (max-width: 768px) {

    .form-container {
        max-width: 100%; 
        padding: 15px;
    }
    .modal-content .title-main,
    .modal-content .title-secondary {
        font-size: 22px;
        padding-left: 20px;
    }
    .contact-form {
        padding: 20px;
    }
    .input-group label {
        font-size: 13px;
        margin-top: 15px;
    }
    .input-group input[type="text"],
    .input-group input[type="tel"],
    .input-group input[type="email"],
    .input-group select {
        font-size: 14px;
        padding: 10px 0;
    }
    .file-input {
        padding: 15px;
    }
    .checkbox-group label {
        font-size: 13px;
    }
    .phone-wrapper {
        gap: 8px;
    }
    .region-select {
        flex: 0 0 100px;
        padding-right: 20px;
    }
    .phone-select img,
    .flag-icon img {
        width: 18px;
        height: 13px;
    }
    .selected-flag {
        width: 60px;
    }
    .modal-box.is-active {
    height: auto;
    max-height: 90vh;
    position: fixed;
    top: 35%;
    left: 28%;
    transform: translate(-50%, -50%);
    max-width: 350px;
    border-radius: 20px;
    padding: 0px;
    z-index: 1001;
  }
}
@media (max-width: 480px) {
    .modal-box {
        width: 90%; 
        max-width: 350px;
        padding: 15px;
        box-sizing: border-box; 
    }

    .bx-core.bx-android.bx-touch.bx-retina.bx-chrome {
        position: relative; 
        width: 100%; 
        height: 100%; 
    }
   .modal-box.is-active {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 400px;
        width: 90%;
        max-height: 60vh;
        border-radius: 20px;
        padding: 0;

        height: 90%;
        z-index: 1000;
    } 
      .modal__close {
        right: 40px;
        top: 40px;
    }
}
    .form-container {
        max-width: 100%;
        padding: 15px;
    }
    .modal-content .title-main,
    .modal-content .title-secondary {
        font-size: 22px;
        padding-left: 20px;
    }
    .contact-form {
        padding: 20px;
    }
    .input-group label {
        font-size: 13px;
        margin-top: 0px;
    }
    .input-group input[type="text"],
    .input-group input[type="tel"],
    .input-group input[type="email"],
    .input-group select {
        font-size: 14px;
        padding: 0px 0;
    }
    .file-input {
        padding: 15px;
    }
    .checkbox-group label {
        font-size: 13px;
    }
    .phone-wrapper {
        gap: 8px;
    }
    .region-select {
        flex: 0 0 100px;
        padding-right: 20px;
    }
    .phone-select img,
    .flag-icon img {
        width: 18px;
        height: 13px;
    }
    .selected-flag {
        width: 60px;
    }
.modal-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    max-width: 500px;
    padding: 20px;
    z-index: 1000;
    border-radius: 20px;
    width: 100%;
}

    .modal-box.is-active {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
}

.phone-select {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.phone-select img {
    width: 20px;
    height: 15px;
    margin-right: 5px;
    border: 1px solid #eee;
    border-radius: 2px;
}
.flag-icon {
    margin-left: 5px;
}
.flag-icon img {
    width: 20px;
    height: 15px;
    border: 1px solid #eee;
    border-radius: 2px;
}
.phone-select-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}
.selected-flag {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    width: 70px;
}
.phone-dropdown {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1000;
}
.phone-option {
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.phone-option:hover {
    background: #f0f0f0;
}
.flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 5px;
    border: 1px solid #eee;
    border-radius: 2px;
}
.dropdown-arrow {
    margin-left: auto;
    font-size: 12px;
}
@media (min-width:768px) {
    .modal-box {
        z-index: 1001 !important;
    }
}
.form-textarea
    {
  max-width: 430px;
  width: 100%;
  max-height: 100px;
  height: 100%;
  border:none;
  border-bottom: 1px solid #C2DFFD;
}
.h1{
    padding-left: 20px;
    font-weight: bold;
    font-size: 22px;
}
.modal__close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #0B80F7;
  cursor: pointer;
  line-height: 0;
}


.form-c {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin-top: -30px;
}

.but{
        margin-top: 30px;
}

.inputtextarea{
    min-height: 40px !important;
}
.marbot{
    margin-bottom: 14px;
}