/* Окно «Get in touch» / «Обсудить проект»: фото Татьяны Молчановой и выбор мессенджера (разметка — scripts/contact.mjs).
   Окно во весь экран на тёмном фоне, как раньше; всплывающее окно Тильды открывает и закрывает его само. */

.daruma-contact {
  position: relative;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  background: #101010;
  color: #f5f5f5;
  font-family: var(--t-text-font, 'Inter', Arial, sans-serif);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 40px 56px;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

/* контейнер окна Тильды не пропускает нажатия (pointer-events: none), поэтому ссылкам и кнопкам включаем их заново;
   пустое место по-прежнему «прозрачное» для нажатия — оно закрывает окно, как и раньше */
.daruma-contact { pointer-events: none; }
.daruma-contact__close,
.daruma-contact__person,
.daruma-contact__title,
.daruma-contact__lead,
.daruma-contact__choice,
.daruma-contact__mail { pointer-events: auto; }
.daruma-contact__title,
.daruma-contact__lead,
.daruma-contact__mail { width: fit-content; max-width: 100%; }

.daruma-contact *,
.daruma-contact *::before,
.daruma-contact *::after { box-sizing: border-box; }

/* крестик справа вверху, тот же, что был: 25 px, светлый */
.daruma-contact a,
.daruma-contact a:hover,
.daruma-contact a:visited { color: #f5f5f5 !important; } /* на /about у ссылок свой, оранжевый цвет */

.daruma-contact__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f5f5;
  border-radius: 4px;
  opacity: .9;
  transition: opacity .15s ease, background-color .15s ease;
}
.daruma-contact__close svg { width: 25px; height: 25px; fill: currentColor; display: block; }
.daruma-contact__close:hover { opacity: 1; background: rgba(245, 245, 245, .08); }
.daruma-contact__close:focus-visible { outline: 2px solid #f5f5f5; outline-offset: 2px; }

.daruma-contact__inner {
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  gap: 88px;
}

.daruma-contact__person {
  flex: 0 0 360px;
  width: 360px;
  margin: 0;
}
.daruma-contact__person img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  background: #1a1a1a;
}
.daruma-contact__person figcaption {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.daruma-contact__name {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #f5f5f5;
}
.daruma-contact__role {
  font-size: 15px;
  line-height: 1.3;
  color: rgba(245, 245, 245, .65);
}

.daruma-contact__body { flex: 1 1 auto; min-width: 0; }

.daruma-contact__title {
  margin: 0;
  font: 500 36px/1.15 var(--t-headline-font, 'Inter', Arial, sans-serif);
  letter-spacing: -.02em;
  color: #f5f5f5;
}
.daruma-contact__lead {
  margin: 20px 0 0;
  max-width: 30em;
  font: 400 22px/1.4 var(--t-text-font, 'Inter', Arial, sans-serif);
  letter-spacing: -.01em;
  color: rgba(245, 245, 245, .86);
  text-wrap: balance;
}

.daruma-contact__choice {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.daruma-contact__btn {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border: 1px solid #6e6e6e;
  border-radius: 4px;
  background: transparent;
  color: #f5f5f5;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.daruma-contact__btn:hover { border-color: #f5f5f5; background: #1a1a1a; }
.daruma-contact__btn:focus-visible { outline: 2px solid #f5f5f5; outline-offset: 3px; }
.daruma-contact__btn svg { flex: 0 0 26px; width: 26px; height: 26px; fill: currentColor; }
.daruma-contact__btn-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.daruma-contact__btn-name { font-size: 20px; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
.daruma-contact__btn-hint { font-size: 14px; line-height: 1.2; color: rgba(245, 245, 245, .65); white-space: nowrap; }

.daruma-contact__mail {
  margin: 30px 0 0;
  font-size: 18px;
  line-height: 1.4;
  color: rgba(245, 245, 245, .72);
}
.daruma-contact__mail a {
  text-decoration-line: underline !important;
  color: #f5f5f5;
  text-decoration: underline;
  text-decoration-color: rgba(245, 245, 245, .4);
  text-underline-offset: 4px;
  transition: text-decoration-color .15s ease;
}
.daruma-contact__mail a:hover { text-decoration-color: #f5f5f5; }

/* планшет */
@media screen and (max-width: 959px) {
  .daruma-contact { padding: 80px 40px 48px; }
  .daruma-contact__inner { gap: 48px; }
  .daruma-contact__person { flex-basis: 260px; width: 260px; }
  .daruma-contact__lead { font-size: 20px; }
}

/* телефон: фото сверху, кнопки во всю ширину */
@media screen and (max-width: 639px) {
  .daruma-contact { align-items: flex-start; padding: 72px 24px 40px; }
  .daruma-contact__close { top: 12px; right: 12px; }
  .daruma-contact__inner { flex-direction: column; align-items: stretch; gap: 28px; }
  .daruma-contact__person { flex: none; width: 168px; }
  .daruma-contact__person figcaption { width: calc(100vw - 48px); }
  .daruma-contact__title { font-size: 30px; }
  .daruma-contact__lead { margin-top: 14px; font-size: 18px; }
  .daruma-contact__choice { margin-top: 26px; flex-direction: column; gap: 12px; }
  .daruma-contact__btn { flex: none; width: 100%; }
  .daruma-contact__mail { margin-top: 24px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .daruma-contact__btn, .daruma-contact__close, .daruma-contact__mail a { transition: none; }
}
