/* ==========================================================================
   Contact page — design D04-Contact (desktop 1440) and M04-Contact (mobile 390)
   ========================================================================== */

body.page-contact { background: #F5FAF7; }
body.page-contact:not([data-user-id]) .shell-main { padding: 0; max-width: none; }

.pc {
  --pc-pad: 80px;
  color: #0B2A1F;
  font-family: 'Manrope', var(--font-body, system-ui), sans-serif;
  padding: 64px var(--pc-pad) 72px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.pc *, .pc *::before, .pc *::after { box-sizing: border-box; }
.pc h1, .pc h2, .pc h3, .pc p { margin: 0; }
.pc a { text-decoration: none; }
.pc svg { flex-shrink: 0; }
.pc [hidden] { display: none !important; }

body[data-user-id] .pc { --pc-pad: 0px; padding-top: 0; padding-bottom: 8px; max-width: 1376px; margin: 0 auto; width: 100%; }

/* ── Header ── */
.pc-head { display: flex; flex-direction: column; gap: 12px; }
.pc-head__title {
  font-family: 'Unbounded', var(--font-display, sans-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 46px;
  line-height: 1.15;
  color: #0B2A1F;
}
.pc-head__lead { font-size: 19px; color: #4A6358; }

/* ── Layout: contacts + FAQ on the left, form on the right ── */
.pc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  grid-template-areas:
    "contacts form"
    "faq form";
  grid-template-rows: auto 1fr;
  column-gap: 32px;
  row-gap: 24px;
  align-items: start;
}
.pc-contacts { grid-area: contacts; }
.pc-form { grid-area: form; }
.pc-faq { grid-area: faq; }

/* ── Contact channels ── */
.pc-contacts { overflow: hidden; border-radius: 24px; }
.pc-contact {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #EEF4F0;
  color: #0B2A1F;
  transition: background .15s ease;
}
.pc-contact:last-child { border-bottom: 0; }
.pc-contact:hover { background: #F5FAF7; color: #0B2A1F; }
.pc-ic {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #E3F4EC;
  color: #0B7F58;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pc-contact__body { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.pc-contact__title { font-weight: 800; font-size: 17px; }
.pc-contact__sub { font-size: 15px; color: #4A6358; overflow-wrap: anywhere; }
.pc-contact__chev { display: none; color: #4A6358; }

/* ── FAQ ── */
.pc-faq { background: #FFFFFF; border: 1px solid #DCEAE2; border-radius: 24px; overflow: hidden; }
.pc-faq__title {
  padding: 20px 24px 8px;
  font-family: 'Manrope', var(--font-body, sans-serif);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  color: #0B2A1F;
}
.pc-faq__item { border-bottom: 1px solid #EEF4F0; }
.pc-faq__item:last-child { border-bottom: 0; }
.pc-faq__q {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.pc-faq__q::-webkit-details-marker { display: none; }
.pc-faq__q::marker { content: ""; }
.pc-faq__plus { color: #0B7F58; font-size: 24px; line-height: 1; font-weight: 700; transition: transform .15s ease; }
.pc-faq__item[open] .pc-faq__plus { transform: rotate(45deg); }
.pc-faq__a { padding: 0 24px 20px; font-size: 15px; line-height: 1.6; color: #4A6358; }

/* ── Form ── */
.pc-form { padding: 36px; display: flex; flex-direction: column; gap: 22px; border-radius: 24px; }
.pc-form__title {
  font-family: 'Unbounded', var(--font-display, sans-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 28px;
  line-height: 1.2;
  color: #0B2A1F;
}
.pc-form__who { margin-top: -10px !important; font-size: 14px; color: #4A6358; overflow-wrap: anywhere; }
.pc-form__form { display: flex; flex-direction: column; gap: 22px; }
.pc-field { display: flex; flex-direction: column; }
.pc-label { font-size: 14px; font-weight: 800; margin-bottom: 6px; display: block; color: #0B2A1F; }
.pc .pc-input {
  height: 52px;
  border-radius: 14px;
  font: 600 16px 'Manrope', var(--font-body, sans-serif);
  padding: 0 16px;
}
.pc .pc-textarea { height: 180px; padding: 14px 16px; resize: none; line-height: 1.5; }
.pc-input::placeholder { color: #8AA197; }

.pc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-chip {
  position: relative;
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  border: 1px solid #DCEAE2;
  background: #FFFFFF;
  font: 700 14px 'Manrope', var(--font-body, sans-serif);
  color: #0B2A1F;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.pc-chip:hover { border-color: #0B7F58; }
.pc-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pc-chip:has(input:checked) { background: #0B2A1F; border-color: #0B2A1F; color: #FFFFFF; }
.pc-chip:has(input:focus-visible) { outline: 2px solid #0E9F6E; outline-offset: 2px; }

.pc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 600; color: #3C5248; cursor: pointer; }
.pc-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #0B7F58; flex-shrink: 0; }
.pc-hint { font-size: 13px; color: #4A6358; }
.pc .pc-error {
  margin: 0;
  border-left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FDECEA;
  color: #9A1C13;
  font-size: 14px;
  font-weight: 700;
}
.pc .pc-error.contact-error--friendly { background: #E3F4EC; color: #075C40; }

.pc-form__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pc-form__note { font-size: 14px; color: #4A6358; }

.pc .pc-status {
  border-left: 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.pc .pc-status--ok { background: #E3F4EC; color: #075C40; }
.pc .pc-status--warn { background: #FEF6C7; color: #6B4E00; }

.pc-tglink { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid #DCEAE2; border-radius: 18px; background: #F5FAF7; }
.pc-tglink__title { font-size: 17px; font-weight: 800; font-family: 'Manrope', var(--font-body, sans-serif); letter-spacing: 0; }
.pc-tglink__desc, .pc-tglink__timer { font-size: 14px; color: #4A6358; }
.pc .pc-tglink__code {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px dashed #DCEAE2;
  text-align: center;
  font-family: 'Unbounded', var(--font-display, sans-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #0B7F58;
}

@media (max-width: 1200px) {
  .pc { --pc-pad: 40px; }
}
@media (max-width: 1000px) {
  .pc-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "contacts" "form" "faq";
    grid-template-rows: auto;
  }
}

/* ── Mobile: M04-Contact ── */
@media (max-width: 767px) {
  .pc { --pc-pad: 16px; padding: 24px var(--pc-pad) 32px; gap: 0; }
  body[data-user-id] .pc { --pc-pad: 0px; padding: 0 0 8px; }

  .pc-head { gap: 8px; }
  .pc-head__title { font-size: 26px; }
  .pc-head__lead { font-size: 16px; line-height: 1.5; }

  .pc-grid { row-gap: 0; }
  .pc-contacts { margin-top: 20px; border-radius: 20px; }
  .pc-contact { gap: 14px; padding: 14px 16px; border-bottom-color: #DCEAE2; }
  .pc-ic { width: 44px; height: 44px; border-radius: 13px; }
  .pc-contact__title { font-size: 16px; }
  .pc-contact__sub { font-size: 14px; }
  .pc-contact__chev { display: block; }

  /* Form sits directly on the page on mobile */
  .pc-form { margin-top: 32px; padding: 0; gap: 16px; background: transparent; border: 0; border-radius: 0; }
  .pc-form__title { font-size: 22px; }
  .pc-form__who { margin-top: -6px !important; }
  .pc-form__form { gap: 16px; }
  .pc .pc-textarea { height: 140px; }
  .pc-form__foot { flex-direction: column; align-items: stretch; }
  .pc-form__note { display: none; }
  .pc-submit { width: 100%; }

  /* FAQ: each question is its own card */
  .pc-faq { margin-top: 36px; background: transparent; border: 0; border-radius: 0; overflow: visible; display: flex; flex-direction: column; gap: 10px; }
  .pc-faq__title {
    padding: 0;
    margin-bottom: 6px !important;
    font-family: 'Unbounded', var(--font-display, sans-serif);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 22px;
  }
  .pc-faq__item { background: #FFFFFF; border: 1px solid #DCEAE2; border-radius: 20px; }
  .pc-faq__item:last-child { border-bottom: 1px solid #DCEAE2; }
  .pc-faq__q { padding: 16px 18px; font-size: 16px; }
  .pc-faq__plus { font-size: 22px; }
  .pc-faq__a { padding: 0 18px 16px; }
}
