/* ==========================================================================
   CONTACT PAGE — Контакт
   ========================================================================== */

/* ==========================================================================
   Hero
   ========================================================================== */

.ct-hero {
  background-color: var(--hp-navy, #1f2f3f);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 200px 0 80px;
  min-height: 400px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.ct-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 47, 63, 0.65);
}

.ct-hero .hp-container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.ct-hero__title {
  color: var(--hp-white, #fff);
  font-size: 50px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 auto;
  max-width: 700px;
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */

.ct-form {
  background: var(--hp-gray-light, #f8f8f8);
  padding: var(--hp-section-py, 80px) 0;
}

.ct-form__header {
  color: var(--hp-red, #cd2c2a);
  font-size: 50px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 12px;
  text-align: center;
}

.ct-form__header-text {
  color: var(--hp-gray, #666);
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 48px;
  text-align: center;
}

.ct-form__inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* ---- Form side (left) ---- */
.ct-form__left {
  flex: 0 0 55%;
  border: 2px solid var(--hp-red, #cd2c2a);
  border-radius: 16px;
  padding: 40px 36px;
  background: rgba(205, 44, 42, 0.03);
}

.ct-form__title {
  color: var(--hp-navy, #1f2f3f);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.25;
}

.ct-form__subtitle {
  color: var(--hp-gray, #666);
  font-size: 15px;
  margin: 0 0 24px;
  line-height: 1.6;
  font-style: italic;
}

/* Contact form */
.ct-lead-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ct-lead-form__row {
  display: flex;
  gap: 16px;
}

/* Fields — scoped to form to beat style.css element selectors */
.ct-lead-form input[type="text"].ct-lead-form__field,
.ct-lead-form input[type="email"].ct-lead-form__field,
.ct-lead-form input[type="tel"].ct-lead-form__field,
.ct-lead-form select.ct-lead-form__field,
.ct-lead-form textarea.ct-lead-form__field {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid rgba(205, 44, 42, 0.35);
  border-radius: 0;
  font-size: 16px;
  font-family: var(--hp-font, inherit);
  background: transparent;
  color: var(--hp-navy, #1f2f3f);
  transition: border-color 0.25s;
  box-shadow: none;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.ct-lead-form .ct-lead-form__field::placeholder {
  color: rgba(31, 47, 63, 0.35);
  font-weight: 400;
}

.ct-lead-form .ct-lead-form__field:hover {
  border-bottom-color: rgba(205, 44, 42, 0.6);
}

.ct-lead-form .ct-lead-form__field:focus {
  border-bottom-color: var(--hp-red, #cd2c2a);
  outline: none;
}

/* Custom dropdown */
.ct-dropdown {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  align-self: stretch;
}

.ct-dropdown__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(205, 44, 42, 0.35);
  cursor: pointer;
  transition: border-color 0.25s;
}

.ct-dropdown__trigger:hover {
  border-bottom-color: rgba(205, 44, 42, 0.6);
}

.ct-dropdown.is-open .ct-dropdown__trigger {
  border-bottom-color: var(--hp-red, #cd2c2a);
}

.ct-dropdown.is-error .ct-dropdown__trigger {
  border-bottom-color: var(--hp-red, #cd2c2a);
}

.ct-dropdown input[type="text"].ct-dropdown__input {
  font-size: 16px;
  font-family: var(--hp-font, inherit);
  color: var(--hp-navy, #1f2f3f);
  border: none;
  border-radius: 0;
  background: transparent;
  outline: none;
  padding: 0;
  width: 100%;
  cursor: pointer;
  box-shadow: none;
}

.ct-dropdown input[type="text"].ct-dropdown__input::placeholder {
  color: rgba(31, 47, 63, 0.35);
  font-weight: 400;
}

.ct-dropdown input[type="text"].ct-dropdown__input:focus {
  border: none;
  outline: none;
  box-shadow: none;
}

.ct-dropdown__arrow {
  width: 12px;
  height: 8px;
  fill: var(--hp-red, #cd2c2a);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.ct-dropdown.is-open .ct-dropdown__arrow {
  transform: rotate(180deg);
}

.ct-dropdown__list {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  z-index: 10;
  background: #fff;
  border: 1px solid rgba(205, 44, 42, 0.2);
  border-radius: 8px;
  margin-top: 4px;
  padding: 8px 0;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.ct-dropdown.is-open .ct-dropdown__list {
  display: block;
}

.ct-dropdown__item {
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--hp-font, inherit);
  color: var(--hp-navy, #1f2f3f);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.ct-dropdown__item:hover {
  background: rgba(205, 44, 42, 0.06);
  color: var(--hp-red, #cd2c2a);
}

.ct-dropdown__item.is-active {
  background: rgba(205, 44, 42, 0.1);
  color: var(--hp-red, #cd2c2a);
  font-weight: 600;
}

.ct-dropdown__empty {
  padding: 12px 16px;
  font-size: 14px;
  color: rgba(31, 47, 63, 0.4);
  font-style: italic;
  list-style: none;
}

/* Textarea */
.ct-lead-form textarea.ct-lead-form__textarea {
  min-height: 80px;
  resize: vertical;
  max-height: 160px;
}

/* Submit */
.ct-lead-form button.ct-lead-form__submit {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--hp-red, #cd2c2a);
  border: 2px solid var(--hp-red, #cd2c2a);
  border-radius: var(--hp-radius-pill, 50px);
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--hp-font, inherit);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-top: 16px;
  letter-spacing: 0.3px;
  text-align: center;
  line-height: 1.5;
}

.ct-lead-form button.ct-lead-form__submit:hover {
  background: var(--hp-red, #cd2c2a);
  color: var(--hp-white, #fff);
  border-color: var(--hp-red, #cd2c2a);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(205,44,42,0.3);
}

.ct-lead-form button.ct-lead-form__submit:active,
.ct-lead-form button.ct-lead-form__submit:focus {
  border-color: var(--hp-red, #cd2c2a);
  outline: none;
}

/* Success/error message */
.ct-lead-form__message {
  display: none;
  padding: 14px 20px;
  border-radius: var(--hp-radius-card, 8px);
  font-size: 15px;
  margin-top: 16px;
  text-align: center;
  color: #2e7d32;
  background: rgba(46, 125, 50, 0.08);
}

.ct-lead-form__message.is-visible {
  display: block;
}

.ct-lead-form__message.is-error {
  color: var(--hp-red, #cd2c2a);
  background: rgba(205, 44, 42, 0.08);
}

/* ---- Info side (right) ---- */
.ct-form__right {
  flex: 1;
  border: 2px solid var(--hp-red, #cd2c2a);
  border-radius: 16px;
  padding: 40px 36px;
  background: rgba(205, 44, 42, 0.03);

}

.ct-form__info-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--hp-navy, #1f2f3f);
  margin: 0 0 28px;
  line-height: 1.3;
}

.ct-form__detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(205, 44, 42, 0.2);
}

.ct-form__detail:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.ct-form__detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(205, 44, 42, 0.1);
  border: 1px solid rgba(205, 44, 42, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.ct-form__detail:hover .ct-form__detail-icon {
  background: rgba(205, 44, 42, 0.2);
}

.ct-form__detail-icon i {
  color: var(--hp-red, #cd2c2a);
  font-size: 20px;
}

.ct-form__detail h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--hp-navy, #1f2f3f);
  margin: 0 0 2px;
}

.ct-form__detail p {
  font-size: 14px;
  color: var(--hp-gray, #666);
  margin: 0;
  line-height: 1.4;
}

.ct-form__detail a {
  color: var(--hp-navy, #1f2f3f);
  text-decoration: none;
  transition: color 0.2s;
}

.ct-form__detail a:hover {
  color: var(--hp-red, #cd2c2a);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ==========================================================================
   Tablet (992px)
   ========================================================================== */

@media (max-width: 992px) {
  .ct-hero__title { font-size: 36px; }
  .ct-form__header { font-size: 36px; }
  .ct-form__inner { gap: 32px; }
  .ct-form__left { flex: 0 0 50%; padding: 32px 28px; }
  .ct-form__right { padding: 32px 28px; }
  .ct-form__title { font-size: 24px; }
  .ct-form__subtitle { font-size: 14px; }
  .ct-form__info-title { font-size: 20px; margin-bottom: 20px; }
  .ct-form__detail { margin-bottom: 16px; padding-bottom: 16px; gap: 12px; }
  .ct-form__detail-icon { width: 40px; height: 40px; }
  .ct-form__detail-icon i { font-size: 18px; }
  .ct-form__detail h4 { font-size: 15px; }
  .ct-form__detail p { font-size: 13px; }
}

/* ==========================================================================
   Mobile (768px)
   ========================================================================== */

@media (max-width: 768px) {
  .ct-hero { padding: 140px 0 52px; min-height: auto; }
  .ct-hero__title { font-size: 30px; }
  .ct-form__header { font-size: 30px; }
  .ct-form__header-text { font-size: 16px; margin-bottom: 32px; }

  /* Stack cards */
  .ct-form__inner { flex-direction: column; gap: 20px; }
  .ct-form__left { flex: none; width: 100%; padding: 28px 24px; border-radius: 12px; }
  .ct-form__right { width: 100%; padding: 28px 24px; border-radius: 12px; }

  .ct-form__title { font-size: 24px; }
  .ct-form__subtitle { font-size: 14px; margin-bottom: 20px; }

  /* Form fields */
  .ct-lead-form .ct-lead-form__field { font-size: 15px; padding: 12px 0; }
  .ct-lead-form button.ct-lead-form__submit { font-size: 15px; padding: 12px 32px; }
  .ct-dropdown__trigger { padding: 12px 0; }
  .ct-dropdown__input { font-size: 15px; }
  .ct-dropdown__item { font-size: 14px; padding: 9px 14px; }

  /* Info side */
  .ct-form__info-title { font-size: 20px; margin-bottom: 20px; }
  .ct-form__detail { gap: 12px; margin-bottom: 16px; padding-bottom: 16px; }
  .ct-form__detail-icon { width: 38px; height: 38px; border-radius: 10px; }
  .ct-form__detail-icon i { font-size: 18px; }
  .ct-form__detail h4 { font-size: 15px; }
  .ct-form__detail p { font-size: 13px; }
}

/* ==========================================================================
   Small Mobile (576px)
   ========================================================================== */

@media (max-width: 576px) {
  .ct-hero { padding: 120px 0 40px; }
  .ct-hero__title { font-size: 26px; }
  .ct-form__header { font-size: 26px; }
  .ct-form__header-text { font-size: 15px; margin-bottom: 24px; }

  .ct-form__left { padding: 20px 16px; }
  .ct-form__right { padding: 20px 16px; }
  .ct-form__title { font-size: 22px; }
  .ct-form__subtitle { font-size: 13px; }

  .ct-lead-form .ct-lead-form__field { font-size: 14px; padding: 10px 0; }
  .ct-lead-form .ct-lead-form__row { gap: 10px; }
  .ct-lead-form button.ct-lead-form__submit { font-size: 14px; padding: 12px 24px; }
  .ct-dropdown__trigger { padding: 10px 0; }
  .ct-dropdown__input { font-size: 14px; }
  .ct-dropdown__item { font-size: 13px; padding: 8px 12px; }

  .ct-form__info-title { font-size: 18px; margin-bottom: 16px; }
  .ct-form__detail { gap: 10px; margin-bottom: 14px; padding-bottom: 14px; }
  .ct-form__detail-icon { width: 36px; height: 36px; border-radius: 8px; }
  .ct-form__detail-icon i { font-size: 16px; }
  .ct-form__detail h4 { font-size: 14px; }
  .ct-form__detail p { font-size: 12px; }
}
