body{
    background-color: white;
}
h1{
    margin-top: 0;
    line-height: 50px;
}

*{
    box-sizing: border-box;
}

.company_service{
    width: 100%;
}

.company_service p{
    font-size: 22px;
    font-weight: normal;
    font-family: Arial;
}

.company_tech{
    margin-bottom: 50px;
}


.heading-line {
  display: flex;
  align-items: center;
  gap: 1em; /* spacing between heading and line */
}

.heading-line .line {
  flex-grow: 1;
  height: 3px;
  background-color: #303870;
}


.ct_container{
    display: grid;
    grid-template-columns: 23% 23% 23% 23%;
    column-gap: 2%;
}

.ct_section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ct_block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    border-radius: 30px;
    border: 2px solid #303870;
    padding: 20px;
    box-sizing: border-box;
}

.ct_img_container {
    margin-top: auto;
    text-align: center;
}

.ct_block img {
    height: 150px;
    object-fit: contain;
    max-width: 100%;
}

.ct_description ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-family: "Arial",serif,sans-serif;
    font-size: 14px;
    margin-top: 5px;
}

.ct_description h3{
    margin: 0;
}

.ct_section input[type='button']{
    width: auto;
    padding: 10px;
    color: rgb(247,247,247);
    font-weight: bold;
    border: 0;
    border-radius: 10px;
    background-color: #303870;
    margin-top: 10px;
    margin-bottom: 10px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

/* Контент модального окна */
.modal-content {
  background-color: #fff;
  padding: 30px 25px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
}

.modal-content h2 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 15px;
}

.modal-content label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.modal-content button[type="submit"] {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background-color: #007BFF;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #0056b3;
}

/* Кнопка закрытия */
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  color: #888;
  cursor: pointer;
}




@media screen and (max-device-width: 1024px) {
    h1{
        line-height:  36px;
    }
    
    h2{
        font-size: 28px;
        line-height: 32px;
    }
    
    .ct_container{
        grid-template-columns: 32% 32% 32%;
        gap: 2%;
    }

}

@media screen and (max-device-width: 968px) {
    
}

@media screen and (max-device-width: 860px) {
    
}


@media screen and (max-device-width: 768px) {
    h1{
        text-align: center;
    }
    
    .ct_container{
        grid-template-columns: 49% 49%;
        gap: 0;
        column-gap: 2%;
    }
}

@media screen and (max-device-width: 550px) {
    .ct_container{
        grid-template-columns: 100%;
        gap: 10px;
    }
    
    .ct_block{
        grid-template-columns: 68% 30%;
        gap: 2%;
        display: grid;
    }
    
    .ct_block img{
        max-height: 100%;
        max-width: 100%;
    }
    
}


@media screen and (max-device-width: 500px) {
    
}

@media screen and (max-device-width: 400px){
    
}