/* ---------- CONTACTS ---------- */
.contacts-section {
  background: linear-gradient(180deg, #1E2C31, #101E1F);
  color: #fff;
  padding: 80px 0;
}

/* Заголовок с линией рядом */
.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}

.contacts-section .section-title {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 60px !important;
  color: #fff;
  margin-bottom: 0;
  white-space: nowrap;
}

.contacts-section .title-line {
  flex-grow: 1;
  height: 2px;
  background: #fff;
  margin-top: 8px;
}

.contact-card {
  background: linear-gradient(135deg, #101F20, #060C0C);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 35px 30px !important;
  border-radius: 50px;
}

.contact-item {
  font-size: 1rem;
  margin-bottom: 28px;
  align-items: flex-start;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-label {
  font-family: "Akt", sans-serif;
  font-size: 0.8rem;
  margin-bottom: 6px;
  color: #a0a8b0 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  font-family: "Rothek", sans-serif;
  font-size: 28px;
  font-weight: 250;
  color: #fff;
  line-height: 1.3;
}

.contact-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #a6ff9b;
  text-decoration: underline;
}

/* Иконки цветные как в референсе */
.icon-wrapper {
  background: transparent !important;
  border-radius: 12px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 22px;
  padding: 0;
}

.custom-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 15px;
}

/* О компании */
.about-company {
  padding-left: 30px;
}

.company-title {
  font-family: "Rothek", sans-serif;
  font-weight: 250;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 25px;
}

.company-content {
  color: #fff;
}

.company-text {
  font-family: "Akt", sans-serif;
  font-weight: 200;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #d3dbe0;
}

/* Фото руководителя */
.director-photo {
  width: 100%;
  height: auto;
  max-width: 180px;
  object-fit: cover;
}

.company-desktop {
  display: block;
}
.company-mobile {
  display: none;
}


/* ---------- CONTACTS MOBILE ---------- */
@media (max-width: 768px) {
  .contacts-section {
    padding: 2rem 0;
  }
  
  .company-desktop {
    display: none !important;
  }
  .company-mobile {
    display: block !important;
  }
  .section-header {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    text-align: center;
  }
  
  .contacts-section .section-title {
    font-size: 36px !important;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
  
  .contacts-section .title-line {
    width: 80px;
    flex-grow: 0;
    margin-top: 5px;
  }
  
  /* Исправляем layout строки */
  .row.g-5.align-items-start {
    gap: 0 !important;
  }
  
  .contact-card {
    padding: 1.5rem 1.2rem !important;
    border-radius: 20px;
    margin: 0 0 2rem 0;
  }
  
  .contact-item {
    margin-bottom: 1rem;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start; /* меняем на flex-start */
    text-align: left; /* меняем на left */
  }
  
  .icon-wrapper {
    width: 45px;
    height: 45px;
    margin-left: 0px;
    flex-shrink: 0;
    border-radius: 4px;
    min-width: 35px; /* фиксированная ширина для выравнивания */
  }
  
  .contact-value {
    font-size: 24px !important;
    line-height: 1.2;
    word-break: break-word;
    text-align: left;
    margin: 0;
    padding: 0;
    flex: 1; /* занимает оставшееся пространство */
    font-family: "Rothek", sans-serif;
    font-weight: 250;
  }
  

  
  /* Исправляем блок "О компании" - ТЕКСТ СЛЕВА, ЛОГОТИП СПРАВА */
  .about-company {
    padding-left: 0;
    margin-top: 0;
    text-align: left;
  }
  
  .company-title {
    font-size: 20px;
    margin-bottom: 1rem;
    margin-left:10px;
    text-align: left;
    font-family: "Rothek", sans-serif;
  }
  
  .company-text {
    font-size: 14px;
    line-height: 1.5;
    margin-left:10px;
    margin-bottom: 0;
    display: block;
    overflow: visible;
    height: auto;
    -webkit-line-clamp: none;
    font-family: "Akt", sans-serif;
  }
  
  /* Располагаем текст слева, логотип справа */
  .about-company .row.align-items-start {
    align-items: stretch; /* растягиваем на всю высоту */
    min-height: 150px; /* минимальная высота блока */
  }
  
  .about-company .col-md-8 {
    width: 55%; /* уменьшил текст */
    flex: 0 0 55%;
    padding-right: 1rem;
  }
  
  .about-company .col-md-4 {
   width: 45%; /* увеличил логотип */
    flex: 0 0 45%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;

  }
  
  .director-photo {
    max-width: 200px; /* еще больше увеличил */
    width: 200%;
    height: auto;
    max-height: 200px; /* ограничиваем по высоте */
    object-fit: contain;
  }
}

/* ---------- IPHONE 14 PRO / 15 PRO ---------- */
@media (max-width: 430px) {
  .contacts-section .section-title {
    font-size: 32px !important;
  }
  
  .contact-card {
    padding: 1.3rem 1rem !important;
  }
  
  .icon-wrapper {
    width: 40px;
    height: 40px;
  }
  
  .contact-value {
    font-size: 18px !important;
  }
  
  .company-title {
    font-size: 18px;
  }
  
  .company-text {
    font-size: 13px;
  }
  
  .about-company .col-md-8 {
    width: 60%;
    flex: 0 0 60%;
  }
  
  .about-company .col-md-4 {
    width: 40%;
    flex: 0 0 40%;
  }
  
  .director-photo {
    max-width: 150px;
    max-height: 1500px;
    margin-right: 10px;
  }
}

/* ---------- IPHONE 12 PRO / 13 PRO ---------- */
@media (max-width: 390px) {
  .contacts-section {
    padding: 1.5rem 0;
  }
  
  .contacts-section .section-title {
    font-size: 28px !important;
  }
  
  .contact-card {
    padding: 1.2rem 0.8rem !important;
    border-radius: 15px;
  }
  
  .contact-item {
    margin-bottom: 0.8rem;
  }
  
  .icon-wrapper {
    width: 35px;
    height: 35px;
    min-width: 30px;
  }
  
  .contact-value {
    font-size: 16px !important;
  }
  
  .company-title {
    font-size: 17px;
    margin-left: 8px;
  }
  
  .company-text {
    font-size: 12px;
    margin-left: 8px;
    line-height: 1.4;
  }
  
  .about-company .col-md-8 {
    width: 58%;
    flex: 0 0 58%;
    padding-right: 0.8rem;
  }
  
  .about-company .col-md-4 {
    width: 42%;
    flex: 0 0 42%;
  }
  
  .director-photo {
    max-width: 150px;
    max-height: 150px;
  }
}

/* ---------- IPHONE SE / MINI ---------- */
@media (max-width: 375px) {
  .contacts-section .section-title {
    font-size: 26px !important;
  }
  
  .contact-card {
    padding: 1rem 0.7rem !important;
    margin: 0 0 1.5rem 0;
  }
  
  .contact-item {
    margin-bottom: 0.7rem;
  }
  
  .icon-wrapper {
    width: 32px;
    height: 32px;
    min-width: 28px;
    margin-right: 0.6rem;
  }
  
  .contact-value {
    font-size: 15px !important;
  }
  
  .company-title {
    font-size: 16px;
    margin-left: 6px;
  }
  
  .company-text {
    font-size: 11px;
    margin-left: 6px;
    line-height: 1.3;
  }
  
  .about-company .col-md-8 {
    width: 55%;
    flex: 0 0 55%;
    padding-right: 0.6rem;
  }
  
  .about-company .col-md-4 {
    width: 45%;
    flex: 0 0 45%;
  }
  
  .director-photo {
    max-width: 150px;
    max-height: 150px;
  }
}

/* ---------- SMALL ANDROID / VERY SMALL ---------- */
@media (max-width: 320px) {
  .contacts-section .section-title {
    font-size: 24px !important;
  }
  
  .contact-value {
    font-size: 14px !important;
  }
  
  .company-title {
    font-size: 15px;
  }
  
  .company-text {
    font-size: 10px;
  }
  
  .director-photo {
    max-width: 90px;
    max-height: 80px;
  }
}