/* Contact / signup section — same look as homepage, for nested catalog pages */

:root {
  --tk-navy: #1a1a2e;
  --tk-navy-2: #16213e;
  --tk-orange: #f39c12;
  --tk-orange-dark: #e67e22;
  --tk-text: #2c3e50;
  --tk-muted: #5d6d7e;
  --tk-radius: 16px;
}

section.contact.section-contact {
  scroll-margin-top: 88px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(243, 156, 18, 0.18), transparent 32%),
    linear-gradient(160deg, #07182f 0%, #102a4d 55%, #1a1a2e 100%) !important;
  padding: 0 !important;
  overflow: hidden;
}

section.contact.section-contact > svg {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -2px;
}

section.contact.section-contact .contact-container-wrap {
  background: transparent !important;
  padding: 2.25rem 0 3.5rem !important;
}

section.contact.section-contact .contact-form {
  margin: 0 !important;
}

section.contact.section-contact .contact-form-card,
section.contact.section-contact .contact-info-card {
  background: #fff !important;
  border-radius: 1.35rem;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.35);
  color: var(--tk-text) !important;
}

section.contact.section-contact .contact-form-card {
  padding: 2rem 1.85rem 1.85rem;
}

section.contact.section-contact .contact-info-card {
  padding: 1.45rem 1.5rem 1.35rem;
  height: 100%;
}

section.contact.section-contact .contact-thumb {
  position: static !important;
  height: 100%;
  margin: 0 !important;
}

section.contact.section-contact .contact-form__label,
section.contact.section-contact .contact-form-card .small-title {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.78rem !important;
  letter-spacing: 0.1em;
  color: var(--tk-muted) !important;
  font-weight: 600 !important;
}

section.contact.section-contact .contact-form__label strong,
section.contact.section-contact .contact-form-card .small-title strong {
  color: var(--tk-orange) !important;
}

/* Заголовок формы: всегда тёмный на белой карточке (перебивает #signup h2 { color:#fff }) */
section.contact.section-contact .contact-form-card h2,
section.contact.section-contact .custom-form h2,
section.contact.section-contact .contact-form__title,
body #signup .contact-form-card h2,
body #signup .contact-form h2,
body #signup form h2,
body #signup .contact-form__title,
body #enroll-form .contact-form-card h2,
body #enroll-form .contact-form h2,
body #enroll-form form h2,
body #enroll-form .contact-form__title,
body #contacts .contact-form-card h2,
body #contacts .contact-form__title,
body #section_5 .contact-form-card h2,
body #section_5 .contact-form__title,
body.page-home #section_5 .contact-form-card h2,
body.page-home #section_5 .contact-form__title {
  color: #1a1a2e !important;
  -webkit-text-fill-color: #1a1a2e !important;
  text-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem) !important;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800 !important;
  margin-bottom: 1.25rem !important;
}

section.contact.section-contact .contact-form-card .form-label,
section.contact.section-contact .contact-form-card label:not(.form-check-label),
section.contact.section-contact .contact-form-card p,
section.contact.section-contact .contact-form-card .form-check-label {
  color: var(--tk-text) !important;
  font-weight: 600;
}

section.contact.section-contact .contact-form-card .form-check-label {
  font-weight: 500;
  font-size: 0.9rem;
}

section.contact.section-contact .contact-form-card .form-check-label a {
  color: var(--tk-navy) !important;
  text-decoration: underline;
}

/* Privacy consent: white check on orange — survives light-card / #signup input overrides */
section.contact.section-contact .contact-form-card .form-check-input,
body #section_5 .contact-form-card .form-check-input,
body #signup .contact-form-card .form-check-input,
body #enroll-form .contact-form-card .form-check-input,
.contact-form__consent .form-check-input {
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.2em;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff !important;
  border: 1.5px solid #94a3b8 !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  accent-color: #e67e22;
}

section.contact.section-contact .contact-form-card .form-check-input:checked,
body #section_5 .contact-form-card .form-check-input:checked,
body #signup .contact-form-card .form-check-input:checked,
body #enroll-form .contact-form-card .form-check-input:checked,
.contact-form__consent .form-check-input:checked {
  background-color: #e67e22 !important;
  border-color: #e67e22 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
}

section.contact.section-contact .contact-form-card .form-check-input:focus,
body #section_5 .contact-form-card .form-check-input:focus,
body #signup .contact-form-card .form-check-input:focus,
body #enroll-form .contact-form-card .form-check-input:focus,
.contact-form__consent .form-check-input:focus {
  border-color: #e67e22 !important;
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.28) !important;
}

section.contact.section-contact .custom-form .form-control:not(button),
section.contact.section-contact .contact-form-card .form-control:not(button) {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem !important;
  margin-bottom: 0;
  padding: 0.8rem 0.95rem;
  color: #0f172a !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  letter-spacing: normal;
  text-shadow: none !important;
}

section.contact.section-contact .custom-form .form-control:not(button):hover,
section.contact.section-contact .custom-form .form-control:not(button):focus,
section.contact.section-contact .contact-form-card .form-control:not(button):hover,
section.contact.section-contact .contact-form-card .form-control:not(button):focus {
  background: #fff !important;
  border-color: #f39c12 !important;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.16);
}

section.contact.section-contact textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

section.contact.section-contact button.form-control,
section.contact.section-contact .custom-form button[type="submit"] {
  background: linear-gradient(135deg, var(--tk-orange), var(--tk-orange-dark)) !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  border: none !important;
  border-radius: 0.75rem !important;
  padding: 0.95rem 1.5rem;
  min-height: 52px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(243, 156, 18, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}

section.contact.section-contact button.form-control:hover,
section.contact.section-contact .custom-form button[type="submit"]:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

section.contact.section-contact .contact-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

section.contact.section-contact .contact-quick-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  text-decoration: none !important;
  background: linear-gradient(165deg, #f8fafc 0%, #fff 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(16, 42, 77, 0.06);
}

section.contact.section-contact .contact-quick-card__icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  font-size: 1rem;
}

section.contact.section-contact .contact-quick-card--phone .contact-quick-card__icon {
  background: linear-gradient(135deg, #2e7d6e, #1a5c4f);
}

section.contact.section-contact .contact-quick-card--email .contact-quick-card__icon {
  background: linear-gradient(135deg, #2b6cb0, #1a365d);
}

section.contact.section-contact .contact-quick-card__label,
section.contact.section-contact .contact-quick-card__hint,
section.contact.section-contact .contact-details__city,
section.contact.section-contact .contact-map-caption {
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 0.72rem !important;
}

section.contact.section-contact .contact-quick-card__value,
section.contact.section-contact .contact-details__text,
section.contact.section-contact .contact-map-caption strong {
  color: #1e293b !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
}

section.contact.section-contact .contact-quick-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

section.contact.section-contact .contact-details {
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e8edf2;
}

section.contact.section-contact .contact-details__row--stack {
  display: block;
  padding: 0.65rem 0;
}

section.contact.section-contact .contact-details__row--stack .contact-details__city {
  display: block;
  margin-bottom: 0.2rem;
}

section.contact.section-contact .contact-details__row--meeting {
  margin-top: 0.15rem;
  padding: 0.7rem 0.65rem !important;
  background: linear-gradient(90deg, rgba(243, 156, 18, 0.12), rgba(243, 156, 18, 0.04));
  border-left: 3px solid var(--tk-orange);
  border-radius: 0.35rem;
}

section.contact.section-contact .contact-social-actions {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

section.contact.section-contact .contact-map {
  display: block;
  width: 100%;
  min-height: 240px;
  border: 0;
  border-radius: 12px;
  background: #e8eef4;
}

section.contact.section-contact .contact-map-link {
  display: inline-flex;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--tk-navy) !important;
  text-decoration: none;
}

section.contact.section-contact .contact-map-link:hover {
  color: var(--tk-orange) !important;
}

@media (max-width: 575.98px) {
  section.contact.section-contact .contact-quick-actions {
    grid-template-columns: 1fr;
  }

  section.contact.section-contact .contact-form-card,
  section.contact.section-contact .contact-info-card {
    padding: 1.25rem 1.1rem;
  }

  section.contact.section-contact .contact-container-wrap {
    padding: 1.75rem 0 2.5rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  section.contact.section-contact button.form-control,
  section.contact.section-contact .custom-form button[type="submit"] {
    transition: none !important;
  }

  section.contact.section-contact button.form-control:hover,
  section.contact.section-contact .custom-form button[type="submit"]:hover {
    transform: none;
  }
}

/* Interview segment radio-cards */
.contact-segment[hidden] {
  display: none !important;
}

.contact-segment.is-visible {
  display: block;
}

.contact-segment__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 576px) {
  .contact-segment__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-segment__card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contact-segment__card:hover {
  border-color: rgba(243, 156, 18, 0.55);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.contact-segment__card:has(input:checked),
.contact-segment__card.is-checked {
  border-color: #f39c12;
  background: rgba(243, 156, 18, 0.08);
  box-shadow: 0 0 0 1px rgba(243, 156, 18, 0.35);
}

.contact-segment__card input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: #e67e22;
}

.contact-segment__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.contact-segment__title {
  font-weight: 700;
  color: #112a4d;
  font-size: 0.95rem;
  line-height: 1.3;
}

.contact-segment__hint {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.35;
}

section.contact.section-contact .contact-segment__title {
  color: #112a4d !important;
}

section.contact.section-contact .contact-segment__hint {
  color: #64748b !important;
}

