.tmk-page {
  padding: calc(var(--landing-header-h, 76px) + 2rem) var(--landing-pad-x, 1.25rem) 4rem;
}

.tmk-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.tmk-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  margin: 0 0 0.75rem;
  color: var(--landing-text, #f1f5f9);
}

.tmk-hero p {
  color: var(--c-muted, #94a3b8);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}

.tmk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.35rem;
}

.tmk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow:
    0 18px 40px rgba(2, 6, 23, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tmk-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c-primary, #0ea5e9) 45%, transparent);
  box-shadow:
    0 24px 48px rgba(2, 6, 23, 0.45),
    0 0 0 1px color-mix(in srgb, var(--c-primary, #0ea5e9) 25%, transparent) inset;
}

/* —— Teacher public profile —— */
.tmk-profile-page {
  padding-top: calc(var(--landing-header-h, 76px) + 1rem);
  padding-bottom: 4rem;
}

.tmk-profile__hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  min-height: clamp(220px, 32vw, 320px);
  background: linear-gradient(135deg, #0ea5e9, #4f46e5);
  display: flex;
  align-items: flex-end;
}

.tmk-profile__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.tmk-profile__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.55) 42%,
    rgba(15, 23, 42, 0.2) 100%
  );
  pointer-events: none;
}

.tmk-profile__hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.25rem;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 1.35rem 1.5rem;
  width: 100%;
}

.tmk-profile__avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  background: #1e293b;
  flex-shrink: 0;
}

.tmk-profile__name {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2rem);
  color: #fff;
}

.tmk-profile__headline {
  color: #cbd5e1;
  margin-top: 0.35rem;
}

.tmk-profile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tmk-profile__tag {
  background: rgba(255, 255, 255, 0.14);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #f1f5f9;
}

.tmk-profile__back {
  display: inline-block;
  margin-bottom: 1rem;
  color: #94a3b8;
  text-decoration: none;
}

.tmk-profile__back:hover {
  color: #e2e8f0;
}

.tmk-profile__card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.tmk-profile__card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.tmk-profile__card h3 {
  margin: 0 0 0.35rem;
}

.tmk-profile__muted {
  color: #94a3b8;
  line-height: 1.7;
}

.tmk-profile__prose {
  line-height: 1.8;
  color: #cbd5e1;
}

.tmk-profile__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: #cbd5e1;
}

.tmk-profile__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tmk-profile__social {
  background: rgba(14, 165, 233, 0.15);
  color: #7dd3fc;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
}

.tmk-profile__form {
  max-width: 560px;
}

.tmk-profile__field {
  display: block;
  margin: 0.75rem 0 0.25rem;
  font-size: 0.9rem;
}

.tmk-profile__input,
.tmk-profile__select,
.tmk-profile__textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #fff;
  box-sizing: border-box;
  font: inherit;
}

.tmk-profile__grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.tmk-profile__service {
  border-top: 1px solid #1e293b;
  padding: 1rem 0;
}

.tmk-profile__service-price {
  color: #7dd3fc;
  font-weight: 700;
}

.tmk-profile__btn {
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font: inherit;
}

.tmk-profile__btn--primary {
  background: #22c55e;
  color: #fff;
}

.tmk-profile__btn--sky {
  background: #0ea5e9;
  color: #fff;
  text-decoration: none;
  display: inline-block;
}

.tmk-profile__btn--outline {
  background: transparent;
  border: 1px solid #475569;
  color: #e2e8f0;
  text-decoration: none;
  display: inline-block;
}

.tmk-profile__alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.tmk-profile__alert--success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.tmk-profile__alert--error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

.tmk-profile__alert--warn {
  color: #fbbf24;
}

.tmk-card__cover {
  height: clamp(132px, 22vw, 168px);
  background: linear-gradient(135deg, #0ea5e9, #6366f1 55%, #8b5cf6);
  overflow: hidden;
}

.tmk-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 640px) {
  .tmk-profile__grid-2 {
    grid-template-columns: 1fr;
  }

  .tmk-profile__hero-content {
    padding: 1rem;
  }

  .tmk-profile__avatar {
    width: 88px;
    height: 88px;
  }
}

.tmk-card__body {
  padding: 0 1.2rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tmk-card__avatar-wrap {
  margin-top: -42px;
  margin-bottom: 0.65rem;
}

.tmk-card__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(15, 23, 42, 0.95);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25);
  background: #1e293b;
}

.tmk-card__avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: #e0f2fe;
  background: linear-gradient(145deg, #0284c7, #4f46e5);
}

.tmk-card__name {
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #f8fafc;
}

.tmk-card__headline {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.55;
  min-height: 2.85em;
  margin: 0 0 0.75rem;
}

.tmk-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.tmk-card__tag {
  font-size: 0.74rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-primary, #0ea5e9) 18%, transparent);
  color: #bae6fd;
  border: 1px solid color-mix(in srgb, var(--c-primary, #0ea5e9) 28%, transparent);
}

.tmk-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.05rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary, #0284c7), color-mix(in srgb, var(--c-primary, #0284c7) 70%, #6366f1));
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--c-primary, #0284c7) 35%, transparent);
}

.tmk-card__cta:hover {
  filter: brightness(1.06);
}

.tmk-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 16px;
}

html[data-landing-theme="light"] .tmk-card {
  background: linear-gradient(165deg, #ffffff, #f8fafc);
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-landing-theme="light"] .tmk-card__name {
  color: #0f172a;
}

html[data-landing-theme="light"] .tmk-card__headline {
  color: #64748b;
}

html[data-landing-theme="light"] .tmk-hero h1 {
  color: #0f172a;
}
