/* Give the support workspace the same spacious canvas as the storefront. */
.support-page #main.container {
  width: min(calc(100% - 56px), 1720px);
  max-width: none;
  padding-bottom: 56px;
}

.support-page .breadcrumb {
  margin: 24px 0 20px;
}

.support-page .support-workspace {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 20px;
  min-height: max(630px, calc(100svh - 240px));
}

.support-page .support-intro,
.support-page .support-form-panel {
  min-height: 0;
  border-radius: 26px;
}

.support-page .support-intro {
  padding: clamp(38px, 4.2vw, 76px);
  background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .12), transparent 38%), linear-gradient(145deg, #13171e, #1a1f28 58%, #202630);
}

.support-page .support-intro::before {
  width: 620px;
  height: 620px;
  right: -230px;
  top: -350px;
}

.support-page .support-intro::after {
  width: 400px;
  height: 400px;
  right: -130px;
  top: -270px;
}

.support-page .support-intro h1 {
  max-width: 750px;
  margin-top: clamp(35px, 6vh, 75px);
  font-size: clamp(52px, 4.5vw, 78px);
}

.support-page .support-lead {
  max-width: 620px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
}

.support-page .telegram-card {
  max-width: 660px;
  padding: 20px;
  border-radius: 20px;
}

.support-page .support-hint {
  font-size: 12px;
}

.support-page .support-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 4.2vw, 76px);
}

.support-page .form-heading h2 {
  font-size: clamp(32px, 2.7vw, 46px);
}

.support-page .form-heading p {
  margin-bottom: 30px;
  font-size: 15px;
}

.support-page .form-row {
  gap: 18px;
  margin-bottom: 22px;
}

.support-page .support-form label {
  font-size: 13px;
}

.support-page .support-form input,
.support-page .support-form textarea {
  margin-top: 11px;
  padding: 16px 18px;
  border-radius: 13px;
  font-size: 15px;
}

.support-page .support-form input {
  height: 56px;
}

.support-page .support-form textarea {
  min-height: 200px;
}

.support-page .form-actions button {
  min-width: 184px;
  height: 54px;
  font-size: 13px;
}

.support-page .support-shortcuts {
  gap: 18px;
  margin-top: 20px;
}

.support-page .support-shortcut {
  min-height: 96px;
  padding: 17px 20px;
  border-radius: 17px;
}

.support-page .support-shortcut strong {
  font-size: 14px;
}

.support-page .support-shortcut small {
  font-size: 11px;
}

@media (max-width: 1050px) {
  .support-page .support-workspace {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .support-page .support-intro,
  .support-page .support-form-panel {
    padding: clamp(32px, 5vw, 54px);
  }

  .support-page .support-intro h1 {
    margin-top: 30px;
    font-size: clamp(40px, 6vw, 62px);
  }

  .support-page .telegram-card {
    margin-top: 42px;
  }
}

@media (max-width: 650px) {
  .support-page #main.container {
    width: calc(100% - 24px);
    padding-bottom: 42px;
  }

  .support-page .breadcrumb {
    margin: 15px 0 13px;
  }

  .support-page .support-workspace {
    gap: 12px;
  }

  .support-page .support-intro,
  .support-page .support-form-panel {
    padding: 27px 22px;
    border-radius: 19px;
  }

  .support-page .support-intro h1 {
    margin: 26px 0 13px;
    font-size: clamp(36px, 9vw, 47px);
  }

  .support-page .support-lead {
    font-size: 14px;
  }

  .support-page .telegram-card {
    margin-top: 29px;
    padding: 13px;
    border-radius: 14px;
  }

  .support-page .form-heading h2 {
    font-size: 29px;
  }

  .support-page .form-heading p {
    margin-bottom: 22px;
    font-size: 13px;
  }

  .support-page .form-row {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-bottom: 17px;
  }

  .support-page .support-form textarea {
    min-height: 160px;
  }

  .support-page .form-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .support-page .form-actions button {
    width: 100%;
  }

  .support-page .form-note {
    order: 2;
    max-width: none;
  }

  .support-page .support-shortcuts {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 12px;
  }

  .support-page .support-shortcut {
    min-height: 78px;
  }
}

.support-page [hidden] { display: none !important; }
.support-page .support-ticket { min-width: 0; }
.support-page .support-ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.support-page .support-ticket-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.support-page .support-ticket-head h2 { margin: 6px 0; color: #12151a; font-size: clamp(27px, 2.3vw, 38px); letter-spacing: -.05em; }
.support-page .support-ticket-head p { margin: 0; color: #697b90; font-size: 13px; line-height: 1.5; }
.support-page .support-ticket-head button { flex: none; padding: 12px 16px; border: 1px solid #e3e4e7; border-radius: 11px; background: #fff; color: #181d26; font: 800 12px Montserrat, sans-serif; cursor: pointer; }
.support-page .support-ticket-messages { display: flex; flex-direction: column; gap: 14px; max-height: 430px; min-height: 170px; overflow-y: auto; padding: 20px; border: 1px solid #e6e7ea; border-radius: 17px; background: #f8f8f9; }
.support-page .support-ticket-message { align-self: flex-end; width: fit-content; max-width: 85%; padding: 15px 18px; border: 1px solid #e7e8e9; border-radius: 16px 16px 4px 16px; background: #fff; overflow-wrap: anywhere; }
.support-page .support-ticket-message.is-support { align-self: flex-start; border-color: #e4e5e7; border-radius: 16px 16px 16px 4px; background: #f7f7f8; }
.support-page .support-ticket-message strong { color: #191d24; font-size: 12px; }
.support-page .support-ticket-message time { margin-left: 12px; color: #8c9aaa; font-size: 11px; }
.support-page .support-ticket-message p { margin: 8px 0 0; color: #191d24; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.support-page .support-reply-form { margin-top: 20px; }
.support-page .support-reply-form label { color: #1c2128; font-size: 13px; font-weight: 800; }
.support-page .support-reply-form textarea { display: block; width: 100%; min-height: 118px; margin-top: 10px; padding: 15px 17px; border: 1px solid #e2e3e4; border-radius: 13px; background: #f8f8f9; color: #14171c; font: 500 15px Montserrat, sans-serif; resize: vertical; }
.support-page .support-reply-form textarea:focus { outline: 0; border-color: #202630; box-shadow: 0 0 0 4px #f1f2f3; }
.support-page .support-reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 13px; }
.support-page .support-reply-actions span { max-width: 340px; color: #76879a; font-size: 11px; line-height: 1.5; }
.support-page .support-reply-actions button { min-height: 46px; padding: 0 18px; border: 0; border-radius: 10px; background: #1b212a; color: #fff; font: 800 12px Montserrat, sans-serif; cursor: pointer; }
.support-page .support-reply-actions button:disabled { opacity: .6; cursor: wait; }
.support-page .saved-tickets { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 20px; padding: 23px 28px; border: 1px solid #e6e7e9; border-radius: 18px; background: #fff; }
.support-page .saved-tickets h2 { margin: 5px 0; color: #12151a; font-size: 22px; }
.support-page .saved-tickets p { margin: 0; color: #74869a; font-size: 12px; }
.support-page #savedTicketsList { display: flex; flex-wrap: wrap; gap: 8px; }
.support-page #savedTicketsList a { padding: 11px 14px; border: 1px solid #e4e5e7; border-radius: 10px; background: #f7f7f8; color: #191e27; font-size: 12px; font-weight: 800; text-decoration: none; }
@media (max-width: 650px) {
  .support-page .support-ticket-head { flex-direction: column; gap: 13px; }
  .support-page .support-ticket-tools { justify-content: flex-start; }
  .support-page .support-ticket-message { max-width: 96%; }
  .support-page .support-ticket-messages { padding: 12px; max-height: 390px; }
  .support-page .support-reply-actions { align-items: stretch; flex-direction: column; }
  .support-page .support-reply-actions button { width: 100%; }
  .support-page .saved-tickets { align-items: stretch; flex-direction: column; padding: 20px; }
}
