.tm-field-note {
  display: block;
  color: #64748b;
  font-size: 0.86em;
  font-weight: 650;
}

.tm-checkbox-label {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
}

.tm-checkbox-label input {
  width: auto !important;
}

.tm-profile-card {
  width: min(620px, calc(100vw - 40px));
}

.tm-profile-preview {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid rgba(11, 77, 175, 0.12);
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.8);
}

.tm-profile-preview strong,
.tm-profile-preview span {
  display: block;
}

.tm-profile-preview span {
  color: #64748b;
}

.tm-profile-avatar,
.avatar.tm-profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.16);
}

.tm-profile-crop-field {
  display: grid;
  gap: 14px;
}

.tm-profile-cropper {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(11, 77, 175, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(20, 184, 166, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.98));
}

.tm-profile-cropper[hidden] {
  display: none !important;
}

.tm-profile-crop-frame {
  position: relative;
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid rgba(11, 84, 189, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(45deg, rgba(226, 232, 240, 0.75) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(226, 232, 240, 0.75) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(226, 232, 240, 0.75) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(226, 232, 240, 0.75) 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  cursor: grab;
  touch-action: none;
}

.tm-profile-crop-frame:active {
  cursor: grabbing;
}

.tm-profile-crop-frame img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  height: auto;
  user-select: none;
  will-change: transform, width, height;
}

.tm-profile-crop-mask {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(8, 37, 103, 0.18);
  pointer-events: none;
}

.tm-profile-crop-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.tm-profile-crop-controls label {
  display: grid;
  gap: 8px;
  margin: 0;
}

.tm-profile-crop-zoom {
  width: 100%;
  accent-color: #0b54bd;
}

.tm-profile-crop-reset {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(11, 84, 189, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #0b54bd;
  font-weight: 850;
  cursor: pointer;
}

.tm-profile-crop-reset:hover,
.tm-profile-crop-reset:focus {
  background: rgba(219, 234, 254, 0.62);
}

.tm-contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.tm-contact-intro,
.tm-contact-card {
  overflow: hidden;
  border: 1px solid rgba(11, 77, 175, 0.12);
  border-radius: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(circle at 10% 0%, rgba(20, 184, 166, 0.13), transparent 34%),
    radial-gradient(circle at 88% 24%, rgba(59, 130, 246, 0.13), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

.tm-contact-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 58px);
}

.tm-contact-intro h2 {
  margin: 12px 0 18px;
  color: #082567;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.tm-contact-intro p {
  color: #64748b;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.75;
}

.tm-contact-info {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(219, 234, 254, 0.58);
  color: #0b54bd;
  font-weight: 850;
}

.tm-contact-info a {
  color: #0b54bd;
}

.tm-contact-methods {
  display: grid;
  gap: 13px;
  margin-top: 26px;
}

.tm-contact-method {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid rgba(11, 77, 175, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.tm-contact-method:hover,
.tm-contact-method:focus {
  transform: translateY(-2px);
  border-color: rgba(11, 77, 175, 0.22);
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.11);
}

.tm-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(219, 234, 254, 0.62);
}

.tm-contact-icon svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
  overflow: visible;
}

.tm-contact-method span:last-child {
  min-width: 0;
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
  font-weight: 900;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-align: left;
}

.tm-contact-viber {
  color: #7360f2;
}

.tm-contact-viber .tm-contact-icon {
  background: rgba(115, 96, 242, 0.11);
}

.tm-contact-viber span:last-child {
  color: #7360f2;
  white-space: nowrap;
}

.tm-contact-whatsapp {
  color: #25d366;
}

.tm-contact-whatsapp .tm-contact-icon {
  background: rgba(37, 211, 102, 0.12);
}

.tm-contact-whatsapp span:last-child {
  color: #22c55e;
  white-space: nowrap;
}

.tm-contact-email {
  color: #64748b;
}

.tm-contact-email .tm-contact-icon {
  background: rgba(100, 116, 139, 0.1);
}

.tm-contact-email span:last-child {
  color: #64748b;
  font-size: clamp(0.82rem, 1.15vw, 0.94rem);
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.tm-contact-card {
  padding: clamp(26px, 4vw, 46px);
}

.tm-contact-card h3 {
  margin: 10px 0 18px;
  color: #071833;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.tm-contact-form {
  margin-top: 18px;
}

.tm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tm-contact-form .tm-label-text {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.tm-contact-form .tm-label-text em {
  color: #ef4444;
  font-style: normal;
}

.tm-contact-form textarea {
  resize: vertical;
}

.tm-contact-form .tm-btn {
  width: fit-content;
  min-width: 180px;
}

@media (max-width: 860px) {
  .tm-contact-section,
  .tm-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .tm-profile-preview {
    align-items: flex-start;
  }

  .tm-profile-avatar,
  .avatar.tm-profile-avatar {
    width: 76px;
    height: 76px;
  }

  .tm-contact-method {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 13px;
  }

  .tm-contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .tm-contact-icon svg {
    width: 28px;
    height: 28px;
  }

}

.tm-login-help {
  margin: 12px 0 0;
  text-align: center;
}

.tm-login-help .tm-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
