/* =========================================
   ОБЩИЕ СТИЛИ
   ========================================= */

.contacts-page,
.contacts-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-bg-contacts {
  box-sizing: border-box;
}

body {
  font-family: 'Copperplate';
  background: #0a0a0a;
  color: #F3EBF0;
  overflow-x: hidden;
}

.choice {
  display: none;
}

/* =========================================
   ЗАДНИЙ ФОН
   ========================================= */

.page-bg-contacts {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  min-height: 1150px;
  height: auto;
  background: #141014;
  border-radius: 0px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  z-index: 1;
  pointer-events: none;
  transition: width 0.3s ease;
}

/* =========================================
   ОСНОВНОЙ КОНТЕЙНЕР
   ========================================= */

.contacts-page {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  margin-top: 100px;
  padding: 30px;
}

/* =========================================
   ЗАГОЛОВОК СТРАНИЦЫ
   ========================================= */

.contacts-header {
  text-align: center;
  margin-bottom: 40px;
}

.contacts-title {
  font-size: 36px;
  font-weight: 600;
  color: #ebd0ef;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.contacts-subtitle {
  font-size: 16px;
  color: #b8a0bc;
  font-weight: 300;
}

/* =========================================
   ФОРМА ОБРАТНОЙ СВЯЗИ
   ========================================= */

.form-section {
  margin-bottom: 40px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #ebd0ef;
}

.form-group input,
.form-group textarea {
  background: rgba(235, 208, 239, 0.05);
  border: 1px solid rgba(235, 208, 239, 0.15);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  color: #F3EBF0;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(235, 208, 239, 0.08);
  border-color: #ebd0ef;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #7a6a7e;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: #ebd0ef;
  color: #000000;
  border: none;
  border-radius: 3px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.submit-btn:hover {
  background: #d4b8d9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(235, 208, 239, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  background: rgba(80, 200, 120, 0.15);
  border: 1px solid rgba(80, 200, 120, 0.3);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  color: #50c878;
  font-weight: 500;
}

/* =========================================
   ИНФОРМАЦИОННЫЕ КАРТОЧКИ
   ========================================= */

.info-section {
  margin-bottom: 40px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.info-card {
  background: rgba(235, 208, 239, 0.05);
  border: 1px solid rgba(235, 208, 239, 0.15);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.info-card:hover {
  background: rgba(235, 208, 239, 0.08);
  border-color: rgba(235, 208, 239, 0.25);
  transform: translateY(-3px);
}

.info-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.info-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #ebd0ef;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 13px;
  color: #b8a0bc;
  line-height: 1.6;
}

/* =========================================
   TELEGRAM СЕКЦИЯ
   ========================================= */

.telegram-section {
  margin-bottom: 50px;
}

.telegram-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(235, 208, 239, 0.05);
  border: 1px solid rgba(235, 208, 239, 0.15);
  border-radius: 8px;
  padding: 25px;
  transition: all 0.3s ease;
}

.telegram-card:hover {
  background: rgba(235, 208, 239, 0.08);
  border-color: rgba(235, 208, 239, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(235, 208, 239, 0.15);
}

.telegram-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(235, 208, 239, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ebd0ef;
}

.telegram-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ebd0ef;
  margin-bottom: 8px;
}

.telegram-link {
  display: inline-block;
  font-size: 16px;
  color: #ebd0ef;
  text-decoration: none;
  transition: color 0.3s ease;
}

.telegram-link:hover {
  color: #d4b8d9;
  text-decoration: underline;
}

/* =========================================
   ПОДВАЛ
   ========================================= */

.contacts-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(235, 208, 239, 0.15);
}

.contacts-footer p {
  font-size: 15px;
  color: #b8a0bc;
  margin-bottom: 8px;
}

.footer-heart {
  font-size: 14px;
  color: #ebd0ef;
}

.telegram-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.telegram-username {
  display: inline-block;
  font-size: 16px;
  color: #ebd0ef;
}

.telegram-card-link:hover .telegram-card {
  background: rgba(235, 208, 239, 0.08);
  border-color: rgba(235, 208, 239, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(235, 208, 239, 0.15);
}


/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */

@media screen and (max-width: 810px) {
  .page-bg-contacts {
    width: max(620px, calc(100vw - 120px));
    min-height: 1400px;
  }
  
  .contacts-page {
    padding: 70px 30px 50px;
    max-width: 620px;
  }
  
  .contacts-title {
    font-size: 32px;
  }
}

@media screen and (max-width: 620px) {
  .page-bg-contacts {
    width: max(460px, calc(100vw - 100px));
    min-height: 1600px;
  }
  
  .contacts-page {
    max-width: 460px;
  }
  
  .contacts-title {
    font-size: 28px;
  }
  
  .telegram-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .telegram-icon {
    margin: 0 auto;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 465px) {
  .page-bg-contacts {
    width: max(400px, calc(100vw - 100px));
    min-height: 1700px;
  }
  
  .contacts-page {
    max-width: 400px;
  }
  
  .contacts-title {
    font-size: 24px;
  }
  
  .telegram-card {
    padding: 20px;
  }
}

@media screen and (max-width: 410px) {
  .page-bg-contacts {
    width: max(370px, calc(100vw - 80px));
    min-height: 1800px;
  }
  
  .contacts-page {
    max-width: 370px;
  }
  
  .contacts-subtitle {
    font-size: 14px;
  }
}

@media screen and (max-width: 375px) {
  .page-bg-contacts {
    width: max(320px, calc(100vw - 40px));
    min-height: 1950px;
  }
  
  .contacts-page {
    padding: 90px 15px 25px;
    max-width: 320px;
  }
  
  .contacts-title {
    font-size: 22px;
  }
  
  .telegram-card {
    padding: 15px;
  }
  
  .info-card {
    padding: 15px;
  }
}
