.sg-cen {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: clamp(24px, 4vw, 60px);
}

/* ОБЩАЯ СЕТКА */
.sg-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: clamp(16px, 2vw, 28px);
    width: min(1200px, 95%);
    margin: 0 auto clamp(24px, 4vw, 48px);
}

/* КАРТОЧКА */
.sg-card {
    background: rgba(31, 42, 64, 0.5);
    backdrop-filter: blur(23px);
    border-radius: 22px;
    border: 1px solid rgba(40, 55, 77, 1);
    color: #fff;

    padding: clamp(28px, 3vw, 56px);
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* ИКОНКА */
.sg-icon {
    width: 48px;
    height: auto;
    margin-bottom: 16px;
}



/* ---------------- BS CONTACT (unique namespace) ---------------- */
.bs-contact-section {
  background: transparent;
  padding: 60px 20px;
  margin-top: 100px;
  color: #fff;
  font-family: "Inter", "Arial", sans-serif;
}

.bs-contact-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

/* Title */
.bs-contact-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 36px;
  letter-spacing: 0.2px;
}

/* Main two-column grid */
.bs-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* LEFT: form column */
.bs-contact-form {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 560px; /* controls visible width of left column */
}

/* small label "Write to us:" */
.bs-form-label {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 6px;
  color: #ffffff;
}

/* inputs */
.bs-input,
.bs-textarea {
  background: rgba(22, 22, 60, 1); /* deep purple box */
  border: 1px solid rgba(255,255,255,0.04);
  color: #cfcfe6;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

/* textarea taller */
.bs-textarea {
  min-height: 140px;
  resize: vertical;
}

/* placeholder color */
.bs-input::placeholder,
.bs-textarea::placeholder {
  color: rgba(207,207,230,0.35);
}

/* SEND button */
.bs-send-btn {
  width: 140px;
  height: 36px;
  background: #fff;
  color: #111;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: transform .12s ease, box-shadow .12s ease;
}

.bs-send-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }

/* RIGHT: social/contact column */
.bs-contact-side {
  width: 100%;
  max-width: 560px;
}

/* right label */
.bs-side-label {
  display: block;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}

/* grid of contact items (2 columns x 3 rows) */
.bs-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* each contact item */
.bs-contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 1px solid rgba(226, 225, 225, 1);
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  min-height: 56px;
  transition: background .12s ease, transform .12s ease;
}

/* left part of item: icon + text */
.bs-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* icon */
.bs-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

/* text inside item */
.bs-item-text {
  font-size: 14px;
  color: #e7e7ef;
  max-width: 220px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* right arrow */
.bs-item-arrow {
  width: 16px;
  height: 16px;
  opacity: 0.85;
  flex-shrink: 0;
}

/* hover */
.bs-contact-item:hover {
  background: rgba(255,255,255,0.03);
  transform: translateY(-3px);
}

/* АДАПТАЦИЯ */
@media (max-width: 480px) {
    .bs-side-grid {
      grid-template-columns: 1fr;
    }
    
    .sg-cards {
        grid-template-columns: 1fr;
        width: 90%;
        gap: 16px;
        margin-left: 5%;
        margin-right: 5%;
    }

    .sg-card {
        padding: 24px;
         }
    .bs-form-label{
            max-width: 300px;
            width: 70%;
        }
   
   
   .bs-input,
   .bs-textarea {
       max-width: 400px;
       width: 80%;
   }
   
   
   .bs-contact-section{
       max-width: 90%;
       padding: 0px 0px;
   }
   .bs-contact-wrap {
    padding: 0 16px;
   }
   .bs-contact-grid{
         grid-template-columns: 1fr;
        width: 90%;
        gap: 16px;
        margin-left: 5%;
        margin-right: 5%;
        
   }
   .bs-contact-form,
  .bs-contact-side {
    max-width: 80%;
    width: 80%;
  }
 }