/* ==========================================================================
   CONTACTS PAGE (КОНТАКТЫ)
   ========================================================================== */
.contacts-page {
  background-color: var(--bg-main);
  color: var(--text-light);
}

/* --- 1. Компактный Hero-блок с бесшовным растворением в фон --- */
.contacts-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 4rem 0 7.5rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .contacts-hero {
    min-height: 460px;
    padding: 5rem 0 8.5rem;
  }
}

.contacts-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.9) contrast(1.05);
}

/* Многослойный градиент: плавно уводит нижнюю кромку фото в 100% --bg-main без шва */
.contacts-hero__overlay {
  position: absolute;
  inset: -1px;
  background: 
    linear-gradient(
      180deg,
      rgba(var(--bg-main-rgb), 0.78) 0%,
      rgba(var(--bg-main-rgb), 0.35) 38%,
      rgba(var(--bg-main-rgb), 0.82) 76%,
      var(--bg-main) 100%
    ),
    radial-gradient(
      circle at 20% 35%,
      rgba(var(--bg-main-rgb), 0.7) 0%,
      transparent 65%
    );
  z-index: 1;
}

.contacts-hero__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  gap: 2.25rem;
}

.contacts-hero__tag {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.585rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.contacts-hero__tag-line {
  width: 34px;
  height: 1px;
  background-color: var(--accent-gold);
}

.contacts-hero__title {
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-light);
  margin-bottom: 1rem;
  max-width: 510px;
}

@media (min-width: 768px) {
  .contacts-hero__title {
    font-size: 2.95rem;
  }
}

.contacts-hero__desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(244, 244, 244, 0.8);
  max-width: 410px;
}

/* Плашка внизу Hero-блока без жесткой разделительной линии */
.hero-card__content-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 1rem;
  margin-top: auto;
  gap: 1rem;
}

.about-tag {
  font-size: 0.53rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 244, 244, 0.65);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.about-tag__line {
  display: inline-block;
  width: 34px;
  height: 1px;
  background-color: var(--accent-gold);
  opacity: 0.7;
}

.about-tag__line--short {
  width: 20px;
}

.hero-card__meta {
  text-align: right;
}

.hero-card__geo,
.hero-card__sub,
.hero-card__year {
  font-size: 0.585rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
}

/* --- 2. Органичная форма заявки (Glassmorphism + Half-bleed) --- */
.contacts-form-section {
  position: relative;
  z-index: 5;
  margin-top: -3.75rem;
  padding-bottom: 4.5rem;
}

@media (min-width: 1024px) {
  .contacts-form-section {
    margin-top: -5.25rem;
    padding-bottom: 5.5rem;
  }
}

.contacts-form {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(
    180deg,
    rgba(24, 26, 29, 0.72) 0%,
    rgba(14, 15, 16, 0.92) 100%
  );
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(212, 168, 90, 0.22);
}

@media (min-width: 768px) {
  .contacts-form {
    padding: 3.75rem 4rem;
  }
}

.contacts-form__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}

.contacts-form__tag {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.contacts-form__tag::after {
  content: '';
  width: 32px;
  height: 1px;
  background-color: var(--accent-gold);
}

.contacts-form__title {
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-light);
}

.contacts-form__subtitle {
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .form-group--full {
    grid-column: span 2;
  }
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-family: var(--font-family);
  font-size: 0.875rem;
  color: var(--text-light);
  transition: border-color 0.3s, background-color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.04);
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' fill='none' stroke='rgba(255,255,255,0.5)' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='1 1 5 5 9 1' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 10px;
}

.form-select option {
  background-color: var(--bg-main);
  color: var(--text-light);
}

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

.form-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .form-action {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

.form-disclaimer {
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 300px;
}

/* --- 3. Инфо-блок контактов (мягкое разделение без резких полос) --- */
.contacts-info {
  padding: 3rem 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.02) 0%,
    transparent 75%
  );
}

.contacts-info__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-item:hover {
  border-color: rgba(212, 168, 90, 0.25);
  background: rgba(255, 255, 255, 0.025);
}

.contact-item__icon {
  width: 22px;
  height: 22px;
  color: var(--accent-gold);
  opacity: 0.9;
}

.contact-item__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
  stroke-width: 1.2;
  fill: none;
}

.contact-item__label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-item__text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-light);
}

.contact-item__text a:hover {
  color: var(--accent-gold);
}

.contact-item__muted {
  color: var(--text-muted);
}

/* --- 4. Workflow (Как мы работаем) --- */
.workflow {
  position: relative;
  padding: 4rem 0 5rem;
  border-top: none;
  background-size: cover;
  background-position: center;
}

.workflow__overlay {
  position: absolute;
  inset: -1px;
  background: var(--bg-main);
  z-index: 1;
}

.workflow .container {
  position: relative;
  z-index: 2;
}

.workflow__header {
  margin-bottom: 3.5rem;
}

.workflow__tag {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.workflow__title {
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-light);
}

.workflow__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  max-width: 400px;
  line-height: 1.5;
}

.workflow__timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .workflow__timeline {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .workflow__timeline {
    grid-template-columns: repeat(7, 1fr);
    gap: 1.25rem;
  }
}

.workflow-step {
  display: flex;
  flex-direction: column;
}

.workflow-step__num {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.workflow-step__track {
  position: relative;
  display: flex;
  align-items: center;
  height: 16px;
  margin-bottom: 1rem;
}

.workflow-step__track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--accent-gold);
  opacity: 0.4;
}

.workflow-step:last-child .workflow-step__track::before {
  display: none;
}

.workflow-step__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(14, 15, 16, 0.8);
}

.workflow-step__label {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.35;
}

.workflow-step__sub {
  color: var(--text-muted);
  font-size: 0.75rem;
}