@media (max-width: 1029px) {
  * {
    box-sizing: border-box;
  }
}

.overflow-js {
  overflow: hidden;
}

.container {
  max-width: 1030px;
  width: 100%;
}
.container > div:not(.wrapper) {
  padding: 0 15px;
}

@media (max-width: 865px) {
  .table-wrapper {
    overflow-x: auto;
  }
}

@media (max-width: 1029px) {
  .header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  .header .logo {
    height: 68px;
    width: 116px;
    margin-right: 13px;
    background-position: center;
    background-size: cover;
  }
  .header ul,
  .header a.home,
  .header a.mail,
  .header a.site_map {
    margin-top: 20px;
    margin-left: 0;
  }
  .header .mmenu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-left: 0;
  }
  .header .mmenu li {
    width: auto;
  }
}
.header .burger {
  display: none;
}
@media (max-width: 768px) {
  .header {
    gap: 5px;
  }
  .header .logo {
    margin-right: 0;
  }
  .header a.home,
  .header a.mail,
  .header a.site_map {
    height: 40px;
    width: 40px;
    background-size: 40px;
  }
  .header a.home:hover,
  .header a.mail:hover,
  .header a.site_map:hover {
    background-size: 40px;
  }
  .header .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    margin-top: 20px;
    cursor: pointer;
    z-index: 10;
  }
  .header .burger div {
    width: 30px;
    height: 2px;
    background-color: #d53035;
    transition: transform 0.3s, width 0.3s;
  }
  .header .burger.open div:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .header .burger.open div:nth-child(2) {
    width: 0;
  }
  .header .burger.open div:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  .header .mmenu {
    position: fixed;
    top: 0;
    right: -100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-top: 0;
    transition: right 0.3s;
    background-color: #ffffff;
    z-index: 9;
  }
  .header .mmenu li {
    margin-bottom: 20px;
  }
  .header .mmenu li:last-child {
    margin-bottom: 0;
  }
  .header .mmenu li a {
    border-right: 2px solid #ce0000;
    padding-right: 20px;
    transition: padding 0.1s;
  }
  .header .mmenu li a:hover, .header .mmenu li a:active {
    padding: 0 30px;
    border-color: #b2b2b2;
  }
  .header .mmenu.open {
    right: 0;
  }
}

@media (max-width: 1029px) {
  .ill {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto auto;
    gap: 15px;
  }
  .ill *:not(.txt *) {
    position: static !important;
    float: none !important;
  }
  .ill .txt {
    width: auto;
  }
  .ill .txt .main_txt {
    padding: 30px;
  }
  .ill .txt .main_txt .transparency {
    top: 0;
    left: 0;
  }
  .ill .circle_1,
  .ill .circle_2,
  .ill .circle_3 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 15px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    background: linear-gradient(to bottom, rgba(169, 25, 132, 0.9), rgba(176, 15, 73, 0.9), rgba(192, 10, 20, 0.9));
  }
  .ill .circle_1 {
    margin-top: auto;
  }
  .ill .circle_2 {
    grid-row: 3;
    grid-column: 2;
  }
  .ill .circle_3 {
    grid-row: 2;
    grid-column: 2;
  }
}
@media (max-width: 580px) {
  .ill {
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto;
    height: auto;
  }
  .ill .txt {
    grid-column: 1/-1;
  }
  .ill .txt .transparency {
    width: 100% !important;
    height: 100% !important;
  }
  .ill .txt .main_txt {
    width: 100%;
  }
  .ill .circle_1 {
    margin-top: 0;
    grid-row: 2;
    grid-column: 1;
    margin-bottom: 15px;
  }
  .ill .circle_2 {
    grid-row: 2;
    grid-column: 2;
    margin-bottom: 15px;
  }
  .ill .circle_3 {
    grid-row: 2;
    grid-column: 3;
    margin-bottom: 15px;
  }
}
@media (max-width: 495px) {
  .ill {
    display: flex;
    flex-wrap: wrap;
  }
  .ill .circle_1,
  .ill .circle_2,
  .ill .circle_3 {
    width: 100%;
    margin-bottom: 0;
  }
}

@media (max-width: 1029px) {
  .wrapper .contant_container {
    margin-left: 0;
    margin-right: 0;
    width: 50%;
    padding: 0 15px;
  }
}
@media (max-width: 865px) {
  .wrapper .contant_container {
    width: 100%;
    margin-bottom: 0;
  }
}

@media (max-width: 1029px) {
  .exist {
    margin-right: 0;
    width: 50%;
  }
}
@media (max-width: 865px) {
  .exist {
    width: 100%;
  }
  .exist table {
    width: 100%;
  }
}

@media (max-width: 1029px) {
  .footer {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 0 15px;
  }
  .footer .tian,
  .footer .copy {
    position: static;
    width: auto;
    margin-right: 0;
  }
  .footer .counter,
  .footer .otstup {
    display: none;
  }
}
@media (max-width: 500px) {
  .footer {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    height: auto;
  }
  .footer .tian,
  .footer .copy {
    text-align: center;
    padding: 0;
    margin: 0;
  }
  .footer .tian {
    padding-bottom: 15px;
  }
  .footer .copy {
    padding-top: 15px;
  }
}

@media (max-width: 1029px) {
  .left_side {
    --minmax: 250px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--minmax), 1fr));
    margin-top: 20px;
    padding: 0 15px;
    gap: 20px;
  }
}
@media (max-width: 1029px) and (max-width: 820px) {
  .left_side {
    --minmax: 200px;
  }
}
@media (max-width: 1029px) and (max-width: 670px) {
  .left_side {
    --minmax: 201px;
  }
}
@media (max-width: 1029px) {
  .left_side .circle_rab {
    margin-left: 0;
  }
  .left_side .circle_rab a {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 15px;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: linear-gradient(to bottom, rgba(169, 25, 132, 0.9), rgba(176, 15, 73, 0.9), rgba(192, 10, 20, 0.9));
    align-items: center;
  }
}
@media (max-width: 1029px) and (max-width: 670px) {
  .left_side .circle_rab:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 1029px) {
  .left_side ul.sub_menu {
    order: 999;
    width: 100%;
    padding: 0;
    grid-column: 1/-1;
  }
}

@media (max-width: 1029px) {
  .contant_container_2 {
    width: 100%;
    margin-right: 0;
    margin-top: 20px;
    padding: 0 15px;
  }
  .contant_container_2 table {
    width: 100%;
  }
}

.ill_2 {
  background-size: cover;
  background-position: center;
}

@media (max-width: 455px) {
  .content form .fieldWrapper {
    display: flex;
    flex-direction: column-reverse;
    margin-bottom: 10px;
  }
  .content form .fieldWrapper label {
    padding-top: 0;
  }
  .content form .fieldWrapper b.star {
    font-size: 25px;
    line-height: 1;
  }
  .content form .fieldWrapper textarea,
  .content form .fieldWrapper input {
    width: 100%;
    margin: 0;
  }
}