/* === storefront /contacts page === */
.nup-contacts {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 20px 88px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0c1f4a;
}

/* --- Header --- */
.nup-contacts__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 8px;
}
.nup-contacts__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #177ec9;
  margin-bottom: 12px;
}
.nup-contacts__title {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #0c1f4a;
}
.nup-contacts__lead {
  font-size: 17px;
  line-height: 1.6;
  color: #4a5568;
  margin: 0;
}

/* --- Section --- */
.nup-contacts__section { margin-top: 52px; }
.nup-contacts__section-head { text-align: center; margin-bottom: 26px; }
.nup-contacts__h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: #0c1f4a;
}
.nup-contacts__section-sub {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
}

/* --- Messenger grid --- */
.nup-msg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.nup-msg-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1.5px solid #e6e9ef;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.nup-msg-card:hover {
  transform: translateY(-3px);
  border-color: #177ec9;
  box-shadow: 0 12px 28px rgba(23, 126, 201, 0.16);
}
.nup-msg-card:focus-visible {
  outline: 2px solid #177ec9;
  outline-offset: 2px;
}
.nup-msg-card__icon { flex: none; }
.nup-msg-card__icon svg {
  width: 50px;
  height: 50px;
  display: block;
  border-radius: 12px;
}
.nup-msg-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.nup-msg-card__name {
  font-size: 16px;
  font-weight: 700;
  color: #0c1f4a;
  line-height: 1.25;
}
.nup-msg-card__handle {
  font-size: 13px;
  color: #6b7280;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nup-msg-card__arrow {
  flex: none;
  display: flex;
  color: #c2c8d4;
  transition: transform 0.16s ease, color 0.16s ease;
}
.nup-msg-card__arrow svg { width: 20px; height: 20px; display: block; }
.nup-msg-card:hover .nup-msg-card__arrow {
  color: #177ec9;
  transform: translateX(3px);
}

/* --- Email form card --- */
.nup-contact-formcard {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid #e6e9ef;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(12, 31, 74, 0.06);
}
#nup-contact-form[hidden] { display: none; }

.nup-cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.nup-cf-field {
  display: block;
  margin-bottom: 16px;
}
.nup-cf-field > span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0c1f4a;
  margin-bottom: 6px;
}
.nup-cf-field input,
.nup-cf-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  border: 1.5px solid #e1e3e8;
  border-radius: 11px;
  font-size: 15px;
  font-family: inherit;
  color: #0c1f4a;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.nup-cf-field input::placeholder,
.nup-cf-field textarea::placeholder { color: #aab1bf; }
.nup-cf-field input:focus,
.nup-cf-field textarea:focus {
  outline: none;
  border-color: #177ec9;
  box-shadow: 0 0 0 3px rgba(23, 126, 201, 0.12);
}
.nup-cf-field textarea {
  resize: vertical;
  min-height: 116px;
  line-height: 1.5;
}
.nup-cf-submit {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 16px;
  background: #177ec9;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(23, 126, 201, 0.32);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.nup-cf-submit:hover {
  background: #1265a1;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(23, 126, 201, 0.45);
}
.nup-cf-submit:disabled {
  background: #9aa3b2;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.nup-cf-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  color: #8b93a3;
}

/* --- Success state --- */
.nup-contact-success { text-align: center; padding: 24px 10px; }
.nup-contact-success[hidden] { display: none; }
.nup-contact-success__icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  background: #20c77a;
  color: #fff;
  border-radius: 50%;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nup-contact-success h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0c1f4a;
  margin: 0 0 8px;
}
.nup-contact-success p {
  font-size: 15px;
  color: #5a6577;
  margin: 0;
  line-height: 1.55;
}

/* --- Responsive --- */
/* 900: на планшете (768-900) 3 колонки мессенджеров не влезали и давали горизонтальный скролл */
@media (max-width: 900px) {
  .nup-msg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nup-contacts { padding: 36px 16px 64px; }
  .nup-contacts__section { margin-top: 40px; }
  .nup-msg-grid { grid-template-columns: 1fr; }
  .nup-cf-row { grid-template-columns: 1fr; gap: 0; }
  .nup-contact-formcard { padding: 24px 20px; }
}
