/* ===== CONTACTS PAGE ===== */

.contacts-page {
  overflow-x: hidden;
}

.contacts-page .thread-line {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  color: rgba(78, 43, 52, 0.16);
  overflow: visible;
}

.contacts-page .thread-line__path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.contacts-page .thread-line.is-drawn .thread-line__path {
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .contacts-page .thread-line__path {
    stroke-dashoffset: 0;
    transition: none;
  }
}

.contacts-hero {
  position: relative;
  background: var(--bg);
  padding: clamp(56px, 8vw, 88px) 0 clamp(40px, 5vw, 56px);
  overflow: hidden;
}

.contacts-hero__line {
  right: 4%;
  top: 10%;
  width: clamp(56px, 7vw, 110px);
  height: 70%;
  display: none;
}

@media (min-width: 768px) {
  .contacts-hero__line {
    display: block;
  }
}

.contacts-hero .container {
  position: relative;
  z-index: 1;
}

.contacts-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.65;
  margin-bottom: 20px;
}

.contacts-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1.12;
  margin-bottom: 24px;
  max-width: 16ch;
}

.contacts-hero__desc {
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 16px);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

.contacts-section {
  padding: clamp(48px, 6vw, 72px) 0;
  background: var(--bg);
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contacts-channels__label,
.contact-form__label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.contacts-channels__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(78, 43, 52, 0.12);
}

.contacts-channel {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid rgba(78, 43, 52, 0.12);
}

.contacts-channel__type {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contacts-channel__value {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 500;
  color: var(--accent);
  line-height: 1.25;
  transition: opacity 0.2s;
  word-break: break-word;
}

.contacts-channel__value:hover {
  opacity: 0.72;
}

.contacts-channel__value--email {
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.contacts-channel__value--link {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contacts-form-col {
  scroll-margin-top: 100px;
}

.contact-form__fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacts-page .form-input {
  height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(78, 43, 52, 0.25);
  background: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 300;
}

.form-submit {
  width: 100%;
  height: 56px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 4px;
}

.form-submit:hover:not(:disabled) {
  opacity: 0.88;
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.contacts-page .modal__input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(78, 43, 52, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 12px;
}

.contacts-page .modal__input::placeholder {
  color: rgba(43, 38, 35, 0.4);
}

.contacts-page .modal__input:focus {
  border-color: var(--accent);
}

.contacts-faq {
  padding: 0 0 clamp(72px, 8vw, 100px);
  background: var(--bg);
}

.contacts-faq__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 36px;
  max-width: 22ch;
  line-height: 1.2;
}

.contacts-faq__list {
  max-width: 800px;
}

.contacts-faq__item {
  border-bottom: 1px solid rgba(78, 43, 52, 0.12);
}

.contacts-faq__item:first-child {
  border-top: 1px solid rgba(78, 43, 52, 0.12);
}

.contacts-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.contacts-faq__question:hover {
  color: var(--accent);
}

.contacts-faq__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}

.contacts-faq__icon::before,
.contacts-faq__icon::after {
  content: '';
  position: absolute;
  background: var(--accent);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contacts-faq__icon::before {
  width: 14px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.contacts-faq__icon::after {
  width: 1.5px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.contacts-faq__item.open .contacts-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.contacts-faq__answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.contacts-faq__item.open .contacts-faq__answer-wrap {
  grid-template-rows: 1fr;
}

.contacts-faq__answer-inner {
  overflow: hidden;
}

.contacts-faq__answer {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  padding-bottom: 22px;
}

@media (max-width: 768px) {
  .contacts-hero {
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .contacts-hero__title {
    max-width: none;
  }

  .contacts-section {
    padding: 40px 0 32px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contacts-form-col {
    scroll-margin-top: 80px;
  }

  .contacts-channel {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }

  .contacts-faq {
    padding-bottom: 40px;
  }

  .contacts-faq__title {
    margin-bottom: 28px;
  }
}

@media (max-width: 375px) {
  .contacts-hero__title {
    font-size: 32px;
  }
}

@media (max-width: 320px) {
  .contacts-hero__title {
    font-size: 28px;
  }

  .contacts-channel__value {
    font-size: 20px;
  }
}
