.contact-us-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #f9f9f9;
    min-height: 100vh;
    background-image: url('/images/WhoWeAre/background.jpg');
    background-size: 100% 103%;
    background-repeat: no-repeat;
    background-position: center;
}

.contact-us-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contact-form {
    flex: 1 1 50%;
    padding-right: 2rem;
}

.subtitle {
    font-size: 1rem;
    color: #ae1700;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #345a96;
}

.description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 100%;
    font-size: 1rem;
}

.form-group textarea {
    resize: none;
    height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0056b3;
    outline: none;
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #555;
    align-items: center;
}

.privacy-link {
    color: #0056b3;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

.btn-primary {
    display: block;
    width: 100%;
    background-color: #0056b3;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #003d80;
}

/* Info Section */
.contact-info {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-wrapper {
    width: 100%;
    height: 380px; /* дефолтная высота для desktop */
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* заполняет контейнер без искажений */
    object-position: center;  /* обрезка по центру */
    display: block;
}

.info-card {
    background: #f9f9f9;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 20px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    width: 40px;
    height: 40px;
    color: #0056b3;
    margin-top: 5px;
}

.info-item p {
    font-size: 16px;
    color: #555;
}

.info-item span {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    margin-bottom: 15px;
}

/* ===== Tablet & iPad (≤1024px): колоночная схема ===== */
@media (max-width: 1024px) {
  .contact-us-wrapper {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .contact-form,
  .contact-info {
    flex: 1 1 100%;
    padding: 0;
  }

  .contact-form {
    padding-bottom: 1.5rem;
  }

  .contact-form .title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .form-group {
    flex-direction: column;
    gap: 1rem;
  }

  .form-group textarea {
    height: 100px;
  }

  .btn-primary {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  /* Фото на планшетах */
  .contact-info .image-wrapper {
    height: 300px; /* чуть меньше для планшетов */
  }

  .contact-info .image-wrapper img {
    object-fit: cover;
    object-position: center;
  }

  .info-card {
    padding: 1rem;
  }

  .info-item {
    gap: 10px;
    margin-bottom: 1rem;
  }

  .info-item p,
  .info-item span {
    font-size: 0.95rem;
  }
}

/* ===== Mobile (≤768px) ===== */
@media (max-width: 768px) {
  .contact-us-container {
    padding: 1rem;
  }

  .contact-us-wrapper {
    padding: 1rem;
    gap: 1rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .contact-form .title {
    font-size: 1.75rem;
  }

  .description {
    font-size: 0.95rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.7rem;
    font-size: 0.9rem;
  }

  .form-group textarea {
    height: 80px;
  }

  .btn-primary {
    padding: 0.7rem;
    font-size: 0.9rem;
  }

  /* Фото на мобильных */
  .contact-info .image-wrapper {
    height: 200px; /* оптимальная высота для мобильных */
  }

  .contact-info .image-wrapper img {
    object-fit: cover;
    object-position: center;
  }

  .info-item i {
    width: 30px;
    height: 30px;
  }

  .info-item p,
  .info-item span {
    font-size: 0.9rem;
  }
}
