.contacts-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

h1 {
    text-align: center;
    font-size: 48px;
    font-weight: 500;
    line-height: 50px;
}

.form-section {
    margin: 75px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 500;
}

.form-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 180px;
    width: 100%;
}

.form-description {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.form-description p {
    font-size: 16px;
    margin: 0;
    line-height: 20px;
    color: #6C757D;
}

.button-large, .button-compact{
    align-self: flex-start;
    background-color: #1E8194;
    color: white;
    padding: 13px 24px;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.button-large {
    display: none;
}

.form-description button:hover {
    transform: scale(1.);
}


.contact-form {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

textarea, input {
    width: 100%;
    padding: 16px;
    border: 1px solid #DEE2E6;
    border-radius: 100px;
    font-size: 1rem;
    background-color: #E9ECEF;
}

textarea {
    height: 120px;
    resize: none;
    border-radius: 23px;
}

textarea::placeholder,
input::placeholder {
    color: #AFB7BF;
    font-size: 16px;
}

textarea:focus,
input:focus {
    border-color: #B9EAF3;
    outline: none;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-around;
    max-width: 100%;
    margin: 0 auto;
}

.info-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    border-radius: 15px;
    width: 100%;
}

/* SVG фон */
.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Содержимое карточки */
.info-icon {
    width: 36px;
    height: 36px;
    background-color: #1E8194;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin-top: 10px;
}

.info-icon img {
    width: 20px;
    height: 20px;
}

h3 {
    font-size: 16px;
    color: #212529;
    font-weight: 500;
    margin: 20px 0;
    z-index: 1;
    padding: 0 40px;
    align-self: flex-start;
}

.info-card:first-child .info-description {
    font-size: 20px;
}

.info-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #212529;
    color: #fff;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    z-index: 1;
    width: 100%;
    margin-top: 12px;
    min-height: 100px;
}

.info-card:nth-child(3) {
    justify-content: flex-start;
    gap: 40px;
}

.info-card:nth-child(3) .info-icon {
    background-color: #212529;
}

.info-card:nth-child(3) .info-socials {
    align-self: flex-start;
    padding-left: 30px;
    color: white;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 30px;
   
}

.info-card:nth-child(3) .info-socials li {
    display: flex;
    gap: 12px;
}

.map-section {
    max-width: 1200px;
    margin: 50px 0;
}

.map-section img {
    width: 100%;
    border-radius: 10px;
}

.subscribe-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
  
  .subscribe-descr {
    max-width: 365px;
  }
  
  .subscribe-descr h2 {
    margin: 0 0 24px;
    font-size: 32px;
    font-weight: 500;
  }
  
  .subscribe-descr p {
    margin: 0;
    font-size: 16px;
    color: #6C757D;
  }
  
  .sub-form {
    display: flex;
    flex-direction: row;
    max-width: 526px;
    width: 100%;
    gap: 10px;
  }
  
  .sub-form input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    background-color: #E9ECEF;
    color: #212529;
  }
  
  .sub-form button {
    padding: 10px 16px;
    background-color: #1E8194;
    color: white;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

@media (max-width: 1280px) {
    .breadcrumb-container {
        padding: 0 32px;
    }

    .contacts-container {
        max-width: unset;
        width: 100%;
        padding: 0 32px;
    }

    .form-container {
        gap: 80px;
    }
}

@media (max-width: 1024px) {
    .form-container {
        gap: 20px;
    }

    .contact-form {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .form-container {
        flex-direction: column;
    }

    .form-section {
        margin-top: 40px;
    }

    .button-compact {
        display: none;

    }

    .button-large {
        display: flex;
        align-self: flex-end;
    }

    .subscribe-section {
        flex-direction: column;
    }

    .subscribe-descr {
        max-width: unset;
    }
}

  

@media (max-width: 480px) {
    .info-section {
        grid-template-columns: 1fr; /* Одна колонка для маленьких экранов */
    }

    .breadcrumb-container {
        padding: 0 16px;
    }

    .contacts-container {
        padding: 0 16px;
    }

    .sub-form {
        flex-direction: column;
    }

    .contacts-container > h1 {
        font-size: 32px;
    }

    .form-section h2 {
        font-size: 24px;
    }

    .subscribe-descr h2 {
        font-size: 24px;
    }
}

