/* MKKU design tokens — college + DPO home redesign */
/* Aura pair: Unbounded (display) + Golos Text (UI) — SIL OFL, self-host, no CDN */
/* Absolute /templates/... paths: theme.N.css font overrides + dir perms edge cases */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/templates/yootheme/fonts/golos-text/golos-text-400.woff2") format("woff2");
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/templates/yootheme/fonts/golos-text/golos-text-500.woff2") format("woff2");
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/templates/yootheme/fonts/golos-text/golos-text-600.woff2") format("woff2");
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/templates/yootheme/fonts/golos-text/golos-text-700.woff2") format("woff2");
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/templates/yootheme/fonts/unbounded/unbounded-400.woff2") format("woff2");
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/templates/yootheme/fonts/unbounded/unbounded-600.woff2") format("woff2");
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/templates/yootheme/fonts/unbounded/unbounded-700.woff2") format("woff2");
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/templates/yootheme/fonts/unbounded/unbounded-800.woff2") format("woff2");
}

/* MKKU design-gap-align — light page, Aura composition lock */
:root {
  --mkku-font-sans: "Golos Text", system-ui, sans-serif;
  --mkku-font-display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --mkku-color-sky: #5bb4f0;
  --mkku-color-surface: #ffffff;
  --mkku-color-bg: var(--mkku-color-surface);
  --mkku-color-blue: #2f6fed;
  --mkku-color-blue-deep: #1e4fc7;
  --mkku-color-lime: #c8f542;
  --mkku-color-text: #0f172a;
  --mkku-color-muted: #64748b;
  --mkku-radius-lg: 28px;
  --mkku-radius-md: 22px;
  --mkku-radius-sm: 16px;
  --mkku-space-1: 8px;
  --mkku-space-2: 16px;
  --mkku-space-3: 24px;
  --mkku-space-4: 40px;
  --mkku-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  --mkku-shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
}

html,
body,
.tm-page {
  font-family: var(--mkku-font-sans) !important;
  background: var(--mkku-color-surface);
  color: var(--mkku-color-text);
}

.tm-page .uk-navbar-nav,
.tm-page .uk-navbar-dropdown-nav,
.tm-page .uk-nav,
.tm-page .uk-button,
.tm-dialog {
  font-family: var(--mkku-font-sans) !important;
}

/* Display: H1/H2/hero titles — Unbounded; body stays Golos Text */
.tm-page h1,
.tm-page h2,
.tm-page .uk-h1,
.tm-page .uk-h2,
.mkku-hero-title,
.mkku-course-card__title,
.mkku-step__title {
  font-family: var(--mkku-font-display) !important;
  letter-spacing: -0.03em;
}

.tm-page {
  overflow-x: clip;
}

/* ---- Header: solid bar; width matches #directions gutters ---- */
.tm-header,
.tm-header-mobile {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--mkku-color-surface);
  box-shadow: none;
  padding: 0;
}

.tm-header .uk-navbar-container,
.tm-header-mobile .uk-navbar-container {
  background: var(--mkku-color-surface) !important;
  border-radius: 0;
  box-shadow: none !important;
  min-height: 80px;
  height: auto;
  padding-inline: 0;
}

/* Same content width as #directions (margin-inline: max(12px, 2vw)) */
.tm-header .uk-navbar-container > .uk-container {
  max-width: none !important;
  width: 100%;
  box-sizing: border-box;
  padding-left: max(12px, 2vw) !important;
  padding-right: max(12px, 2vw) !important;
}

.tm-header .uk-navbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  gap: 12px;
  min-height: 80px;
}

.tm-header .uk-navbar-left {
  flex: 0 0 auto;
}

.tm-header .uk-navbar-right {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: auto !important;
  margin-left: 0;
  min-width: 0;
}

/* Nav centered in remaining space; CTA stays right */
.tm-header .uk-navbar-right > .uk-navbar-nav {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: stretch;
  gap: 2px;
  margin: 0;
  min-width: 0;
}

/* Logical IA order without nested-set surgery */
.tm-header .uk-navbar-right > .uk-navbar-nav > .item-123 { order: 1; } /* Колледж */
.tm-header .uk-navbar-right > .uk-navbar-nav > .item-135 { order: 2; } /* ДПО */
.tm-header .uk-navbar-right > .uk-navbar-nav > .item-138 { order: 3; } /* Поступление */
.tm-header .uk-navbar-right > .uk-navbar-nav > .item-175 { order: 4; } /* Профессии */
.tm-header .uk-navbar-right > .uk-navbar-nav > .item-145 { order: 5; } /* О колледже */
.tm-header .uk-navbar-right > .uk-navbar-nav > .item-148 { order: 6; } /* Сведения */
.tm-header .uk-navbar-right > .uk-navbar-nav > .item-192 { order: 7; } /* Блог */
.tm-header .uk-navbar-right > .uk-navbar-nav > .item-151 { order: 8; } /* Контакты */

.tm-header .uk-navbar-right > .mkku-header-cta {
  flex: 0 0 auto;
  order: 99;
}

/* Mobile header: logo + CTA + burger — hide inline nav (menu stays in offcanvas) */
.tm-header-mobile .uk-navbar-right > .uk-navbar-nav {
  display: none !important;
}

.tm-header-mobile .uk-navbar-container > .uk-container {
  max-width: none !important;
  width: 100%;
  box-sizing: border-box;
  padding-left: max(12px, 2vw) !important;
  padding-right: max(12px, 2vw) !important;
}

.tm-header-mobile .uk-navbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  gap: 8px;
  min-height: 56px;
}

.tm-header-mobile .uk-navbar-left {
  flex: 0 0 auto;
}

.tm-header-mobile .uk-navbar-right {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.tm-header-mobile .mkku-header-cta {
  flex: 0 0 auto;
  margin: 0 !important;
}

.tm-header-mobile .mkku-header-cta .uk-button,
.tm-header-mobile .mkku-header-cta a.uk-button-primary {
  padding: 8px 14px !important;
  min-height: 40px;
  font-size: 13px;
  line-height: 1.2;
}

/* Desktop: hide offcanvas burger (it was wrapping under ПОСТУПИТЬ) */
@media (min-width: 960px) {
  .tm-header .uk-navbar-toggle {
    display: none !important;
  }
}

.tm-header .uk-navbar-nav > li > a,
.tm-header-mobile .uk-navbar-nav > li > a {
  font-family: var(--mkku-font-sans) !important;
  font-weight: 600;
  font-size: 13px;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--mkku-color-text) !important;
  white-space: nowrap;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.tm-header .uk-navbar-nav > li > a:hover,
.tm-header .uk-navbar-nav > li.uk-active > a {
  color: var(--mkku-color-blue-deep) !important;
}

.tm-header .uk-navbar-dropdown {
  border-radius: 16px;
  box-shadow: var(--mkku-shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 12px 8px !important;
  min-width: 240px;
}

.tm-header .uk-navbar-dropdown-nav > li > a {
  font-family: var(--mkku-font-sans) !important;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  padding: 8px 12px !important;
}

.tm-header .uk-navbar-dropdown-nav > li > a:hover {
  background: rgba(47, 111, 237, 0.08);
  color: var(--mkku-color-blue-deep) !important;
}

/* ---- Mobile offcanvas menu ---- */
.uk-offcanvas-bar {
  padding: 20px 18px 32px !important;
  width: min(100vw - 48px, 340px) !important;
}

.uk-offcanvas-bar .uk-logo,
.uk-offcanvas-bar .uk-logo svg {
  max-height: 36px;
}

.uk-offcanvas-bar .uk-nav-default,
.uk-offcanvas-bar .uk-nav-primary,
.uk-offcanvas-bar .uk-nav {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

.uk-offcanvas-bar .uk-nav > .item-123 { order: 1; }
.uk-offcanvas-bar .uk-nav > .item-135 { order: 2; }
.uk-offcanvas-bar .uk-nav > .item-138 { order: 3; }
.uk-offcanvas-bar .uk-nav > .item-175 { order: 4; }
.uk-offcanvas-bar .uk-nav > .item-145 { order: 5; }
.uk-offcanvas-bar .uk-nav > .item-148 { order: 6; }
.uk-offcanvas-bar .uk-nav > .item-192 { order: 7; }
.uk-offcanvas-bar .uk-nav > .item-151 { order: 8; }

.uk-offcanvas-bar .uk-nav > li > a {
  font-family: var(--mkku-font-sans) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #f8fafc !important;
  padding: 12px 4px !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.12);
  text-transform: none !important;
}

.uk-offcanvas-bar .uk-nav > li > a:hover,
.uk-offcanvas-bar .uk-nav > li.uk-active > a {
  color: var(--mkku-color-lime) !important;
}

.uk-offcanvas-bar .uk-nav-sub {
  padding-left: 12px !important;
  margin: 4px 0 8px !important;
  border-left: 2px solid rgba(200, 245, 66, 0.35);
}

.uk-offcanvas-bar .uk-nav-sub > li > a {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #cbd5e1 !important;
  padding: 8px 4px !important;
  border-bottom: 0 !important;
}

.uk-offcanvas-bar .uk-nav-sub > li > a:hover {
  color: #fff !important;
}

.uk-offcanvas-bar .mkku-header-cta,
.uk-offcanvas-bar .uk-button-primary {
  display: inline-flex !important;
  margin-top: 20px !important;
  width: 100%;
  justify-content: center;
}

.tm-header-mobile .uk-navbar-toggle {
  color: var(--mkku-color-text) !important;
  border-radius: 12px;
  min-width: 44px;
  min-height: 44px;
}

.tm-header-mobile .uk-navbar-toggle:hover {
  background: rgba(47, 111, 237, 0.08);
  color: var(--mkku-color-blue-deep) !important;
}

/* Logo: force lime tile (uk-svg can wipe presentation attrs) */
.tm-header .uk-logo,
.tm-header-mobile .uk-logo {
  display: inline-flex;
  align-items: center;
}

.tm-header .uk-logo img,
.tm-header-mobile .uk-logo img,
.tm-header .uk-logo svg,
.tm-header-mobile .uk-logo svg {
  max-height: 40px;
  width: auto;
  display: block;
}

.tm-header .uk-logo svg rect,
.tm-header-mobile .uk-logo svg rect {
  fill: #c8f542 !important;
}

.tm-header .uk-logo svg path,
.tm-header-mobile .uk-logo svg path {
  fill: none !important;
  stroke: #0f172a !important;
}

.tm-header .uk-logo svg text,
.tm-header-mobile .uk-logo svg text {
  fill: #0f172a !important;
}

.tm-header .uk-drop,
.tm-header .uk-navbar-dropdown {
  z-index: 1030 !important;
}

.mkku-header-cta .uk-button,
.tm-header .uk-button-primary,
.tm-header-mobile .uk-button-primary {
  background: var(--mkku-color-blue) !important;
  color: #fff !important;
  border-radius: 999px !important;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 22px !important;
  font-weight: 700;
  box-shadow: none;
  white-space: nowrap;
}

.tm-page .uk-button-primary {
  background: var(--mkku-color-blue);
  color: #fff;
  border-radius: 999px;
  min-height: 44px;
  padding: 12px 28px;
  font-weight: 700;
}

.tm-page .uk-button-primary:hover {
  background: var(--mkku-color-blue-deep);
}

.tm-page a:focus-visible,
.tm-page button:focus-visible {
  outline: 3px solid var(--mkku-color-lime);
  outline-offset: 3px;
}

/* ---- HERO: no underlay island ---- */
.mkku-hero.uk-section,
.mkku-hero.uk-section-large,
.mkku-hero.uk-section-xlarge,
.mkku-hero.uk-section-muted {
  position: relative;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-top: 28px !important;
  padding-bottom: 56px !important;
}

/* Let snake escape column/container toward header + right edge */
.mkku-hero .uk-container,
.mkku-hero .uk-grid,
.mkku-hero .uk-grid > *,
.mkku-hero .uk-panel {
  overflow: visible !important;
}

/*
 * Layers (bottom → top): page → snake → photo → DOD → header(1020)
 * Snake on media cluster so it frames photo; extends under header + to right.
 */
.mkku-hero::before {
  content: none;
  display: none;
}

.mkku-hero > .uk-container {
  position: relative;
  z-index: 1;
}

/* Keep H1 inside left column — Unbounded is wide, must not paint over photo */
.mkku-hero-copy {
  min-width: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.mkku-hero-copy .uk-panel {
  min-width: 0;
  max-width: 100%;
}

.mkku-hero-copy .mkku-hero-title,
.mkku-hero-copy h1,
.mkku-hero-copy .uk-h1 {
  font-size: clamp(1.45rem, 0.85rem + 2.1vw, 2.45rem) !important;
  line-height: 1.12 !important;
  font-weight: 700 !important;
  letter-spacing: -0.035em;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  margin-bottom: 28px !important;
  padding-right: 4%;
}

@media (min-width: 960px) and (max-width: 1199px) {
  .mkku-hero-copy .mkku-hero-title,
  .mkku-hero-copy h1,
  .mkku-hero-copy .uk-h1 {
    font-size: clamp(1.4rem, 1.9vw, 2.05rem) !important;
  }
}

@media (min-width: 1200px) {
  .mkku-hero-copy .mkku-hero-title,
  .mkku-hero-copy h1,
  .mkku-hero-copy .uk-h1 {
    font-size: clamp(1.75rem, 1.2rem + 1.35vw, 2.45rem) !important;
  }
}

/* Hero CTA: light pill + blue circle arrow */
.mkku-hero .mkku-hero-cta.uk-button,
.mkku-hero .uk-button-default.mkku-hero-cta,
.mkku-hero a.mkku-hero-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 14px;
  border-radius: 999px !important;
  min-height: 52px;
  padding: 12px 14px 12px 24px !important;
  background: #eef2f7 !important;
  color: var(--mkku-color-text) !important;
  border: 0 !important;
  font-weight: 700;
  box-shadow: none;
}

.mkku-hero a.mkku-hero-cta::after {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mkku-color-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/18px no-repeat;
  flex: 0 0 40px;
}

.mkku-hero-media {
  position: relative;
  z-index: 1;
  min-height: 460px;
  padding: 48px 0 80px 24px;
  overflow: visible !important;
}

/*
 * Z-snake: starts LEFT of photo, peeks under/above menu,
 * zigzags under photo, exits RIGHT bottom→up. Thinner brush (SVG w=68).
 * Layer UNDER photo + DOD.
 */
.mkku-hero-media::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -150px;
  left: -18%;
  right: -10vw;
  width: auto;
  height: calc(100% + 220px);
  background: url("/images/mkku/hero-lime.svg?v=6") left top / contain no-repeat;
  pointer-events: none;
}

.mkku-hero-media > .uk-panel {
  position: relative;
  z-index: 1;
  min-height: 440px;
}

.mkku-hero-media .mkku-hero-photo {
  position: relative;
  z-index: 2;
  width: 82%;
  max-width: 460px;
  margin-left: auto !important;
  margin-right: 6% !important;
  margin-bottom: 0 !important;
  /* CW tilt — opposite of previous; matches user correction */
  transform: rotate(7deg);
  transform-origin: center center;
}

.mkku-hero-media .mkku-hero-photo .el-image,
.mkku-hero-media .mkku-hero-photo img.el-image,
.mkku-hero-media img.el-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 24px;
  box-shadow: var(--mkku-shadow);
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transform: none;
}

/* DOD: same CW +7deg as photo, over bottom-left of photo */
.mkku-hero-media .mkku-dod-card {
  position: absolute !important;
  left: 0;
  bottom: 40px;
  z-index: 3;
  width: min(250px, 62%);
  margin: 0 !important;
  padding: 14px 16px 12px !important;
  background: var(--mkku-color-surface) !important;
  border-radius: 22px !important;
  box-shadow: var(--mkku-shadow);
  transform: rotate(7deg);
  transform-origin: center center;
}

.mkku-hero-media .mkku-dod-card .el-title {
  font-family: var(--mkku-font-sans);
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 0 4px !important;
  letter-spacing: 0;
}

.mkku-hero-media .mkku-dod-card .el-meta {
  display: none !important; /* [draft] clutter — ref card is compact */
}

.mkku-hero-media .mkku-dod-card .el-content p {
  font-size: 0.8rem;
  line-height: 1.35;
  margin: 0 0 8px !important;
  color: var(--mkku-color-muted);
}

.mkku-hero-media .mkku-dod-card .uk-button {
  min-height: 36px;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---- Directions: blue underlay + staggered cards (Aura ref) ---- */
#directions,
.mkku-dirs.uk-section-primary {
  background: var(--mkku-color-blue) !important;
  color: #fff;
  border-radius: var(--mkku-radius-lg);
  overflow: visible !important;
  margin-inline: max(12px, 2vw);
  /* room for zigzag so cards/paperclip clear h2 */
  padding-top: 72px !important;
  padding-bottom: 56px !important;
}

#directions.uk-section-large,
.mkku-dirs.uk-section-large {
  padding-top: 72px !important;
  padding-bottom: 56px !important;
}

#directions h2,
.mkku-dirs h2 {
  color: #fff !important;
  margin-bottom: 8px !important;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem) !important;
}

.mkku-dirs .uk-grid {
  margin-top: 12px !important;
}

.mkku-dirs .uk-grid > [class*="uk-width"] {
  transition: transform 0.2s ease;
}

/* Wider gaps between cards (ref: clear blue between cards, no overlap) */
.mkku-dirs .uk-grid.uk-grid-medium,
.mkku-dirs .uk-grid {
  margin-left: -20px !important;
}

.mkku-dirs .uk-grid > * {
  padding-left: 20px !important;
}

@media (min-width: 960px) {
  .mkku-dirs .uk-grid {
    margin-left: -28px !important;
  }
  .mkku-dirs .uk-grid > * {
    padding-left: 28px !important;
  }
  /* stronger zigzag like ref */
  .mkku-dirs .uk-grid > :nth-child(1),
  .mkku-dirs .uk-grid > :nth-child(3) {
    transform: translateY(-28px);
  }
  .mkku-dirs .uk-grid > :nth-child(2),
  .mkku-dirs .uk-grid > :nth-child(4) {
    transform: translateY(28px);
  }
}

.mkku-dir-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-height: 0;
  height: 100%;
  border-radius: 24px !important;
  box-shadow: var(--mkku-shadow-soft);
  background: var(--mkku-color-surface) !important;
  color: #0f172a !important;
  padding: 18px 16px 16px !important;
  overflow: visible !important;
  margin-left: 0 !important;
}

/* Large tilted paperclip (ref ~45°) */
.mkku-dir-card::after {
  content: "";
  position: absolute;
  top: -28px;
  right: 2px;
  width: 56px;
  height: 84px;
  background: url("/images/mkku/paperclip.svg?v=3") center / contain no-repeat;
  transform: rotate(45deg);
  transform-origin: center 28%;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 3px 3px rgba(15, 23, 42, 0.2));
}

/*
 * Title BEFORE image.
 * BUGFIX: do NOT hide h3.el-title.uk-margin-top — previous
 * `> .uk-margin-top:not(.el-meta)` matched titles and removed them.
 */
.mkku-dir-card .el-title,
.mkku-dir-card h3.el-title {
  order: 1 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 2;
  margin: 0 44px 0 0 !important;
  padding: 0 !important;
  font-family: var(--mkku-font-sans) !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
  color: #0f172a !important;
  max-width: 100%;
  height: auto !important;
  overflow: visible !important;
}

.mkku-dir-card .el-image,
.mkku-dir-card img.el-image {
  order: 2 !important;
  display: block !important;
  width: 100% !important;
  max-width: none;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 !important;
  border-radius: 12px;
}

.mkku-dir-card .el-meta:empty {
  display: none !important;
}

/* Lime CTA pill = real link to specialty; whole card clickable (stretched) */
.mkku-dir-card .el-link,
.mkku-dir-card a.el-link,
.mkku-dir-card a.uk-button.uk-button-default {
  order: 3 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: auto auto 0 !important;
  min-height: 30px;
  padding: 6px 16px !important;
  border-radius: 999px !important;
  background: #c8f542 !important;
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  text-decoration: none !important;
  width: auto !important;
  max-width: 100%;
  border: 0 !important;
  box-shadow: none !important;
  /* no position:relative — ::after stretches to .mkku-dir-card */
  z-index: 6;
}

.mkku-dir-card .el-link:hover,
.mkku-dir-card a.el-link:hover,
.mkku-dir-card a.uk-button.uk-button-default:hover {
  background: #b8e538 !important;
  color: #0f172a !important;
}

.mkku-dir-card .el-link::after,
.mkku-dir-card a.el-link::after,
.mkku-dir-card a.uk-button.uk-button-default::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
}

.mkku-dir-card .el-content {
  display: none !important;
}

/* Wrapper YOOtheme puts around the button — keep flex order */
.mkku-dir-card > div.uk-margin-top:has(> a.el-link),
.mkku-dir-card > div.uk-margin-top:has(> a.uk-button) {
  order: 3 !important;
  display: flex !important;
  justify-content: center;
  margin: auto 0 0 !important;
  padding: 0 !important;
}

/* ---- Course cards ---- */
/* SPO block only — .mkku-dpo keeps its own padding rules */
.mkku-courses.uk-section:not(.mkku-dpo) {
  padding-top: 36px !important;
  padding-bottom: 28px !important;
}

.mkku-courses-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.mkku-courses-all {
  font-weight: 700;
  color: var(--mkku-color-blue) !important;
  text-decoration: none;
  white-space: nowrap;
}

.mkku-course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--mkku-radius-md);
  background: var(--mkku-color-surface);
  box-shadow: var(--mkku-shadow-soft);
  overflow: hidden;
  padding: 0 0 16px;
  color: var(--mkku-color-text);
}

.mkku-course-card__media {
  position: relative;
  margin: 0;
}

.mkku-course-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--mkku-radius-md) var(--mkku-radius-md) 0 0;
}

.mkku-course-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mkku-course-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  color: var(--mkku-color-text);
}

.mkku-course-card__badge--hot {
  background: #111;
  color: #fff;
}

.mkku-course-card__body {
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.mkku-course-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.mkku-course-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mkku-course-card__tag {
  display: inline-flex;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #e8f0ff;
  color: #1e4fc7;
}

.mkku-course-card__tag:nth-child(2) { background: #e8fbea; color: #166534; }
.mkku-course-card__tag:nth-child(3) { background: #fff1e6; color: #9a3412; }

.mkku-course-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.mkku-course-card__cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  background: var(--mkku-color-blue) !important;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  border: 0 !important;
}

/* Hide default panel chrome when using course HTML */
.mkku-course-card .el-title,
.mkku-course-card .el-meta,
.mkku-course-card > .el-link {
  display: none !important;
}

.mkku-dpo,
.mkku-dpo.uk-section-default,
#dpo.uk-section {
  background: transparent !important;
  border-radius: 0;
  padding-top: 36px !important;
  padding-bottom: 28px !important;
}

/* ---- Steps: numbered timeline ---- */
.mkku-steps,
.mkku-steps.uk-section {
  padding-top: 28px !important;
  padding-bottom: 36px !important;
}

.mkku-steps h2 {
  margin-bottom: 4px !important;
  font-size: clamp(1.5rem, 2.2vw, 2rem) !important;
}

.mkku-steps__lead {
  margin: 0 0 20px !important;
  color: var(--mkku-color-muted);
  font-size: 1rem;
  max-width: 36em;
}

.mkku-steps__track {
  position: relative;
}

@media (min-width: 960px) {
  .mkku-steps__track::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0 8%, #e2e8f0 92%, transparent);
    z-index: 0;
    pointer-events: none;
  }
}

.mkku-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 22px 18px 20px;
  border-radius: var(--mkku-radius-md);
  background: var(--mkku-color-surface);
  box-shadow: var(--mkku-shadow-soft);
  border: 1px solid #eef2f7;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mkku-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--mkku-shadow);
}

.mkku-step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--mkku-color-lime);
  color: var(--mkku-color-text);
  font-family: var(--mkku-font-display);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(200, 245, 66, 0.45);
}

.mkku-step__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--mkku-color-text);
}

.mkku-step__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--mkku-color-muted);
}

/* ---- DOD promo banner ---- */
.mkku-dod,
#dod,
.mkku-dod.uk-section {
  background: transparent !important;
  color: inherit;
  border-radius: 0;
  margin-inline: 0;
  padding-top: 12px !important;
  padding-bottom: 40px !important;
}

.mkku-dod-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 32px 36px;
  border-radius: var(--mkku-radius-lg);
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(200, 245, 66, 0.22), transparent 55%),
    linear-gradient(135deg, #1e4fc7 0%, #2f6fed 55%, #1a3a9e 100%);
  color: #fff;
  box-shadow: var(--mkku-shadow);
}

.mkku-dod-banner__label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--mkku-color-lime);
  color: var(--mkku-color-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mkku-dod-banner__title {
  margin: 0 0 8px !important;
  font-family: var(--mkku-font-display) !important;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.2 !important;
}

.mkku-dod-banner__meta {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36em;
}

.mkku-dod-banner__cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 52px;
  padding: 12px 28px !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--mkku-color-blue-deep) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, background 0.15s ease;
}

.mkku-dod-banner__cta:hover {
  background: var(--mkku-color-lime) !important;
  color: var(--mkku-color-text) !important;
  transform: translateY(-2px);
}

/* ---- Footer ---- */
.mkku-footer,
.mkku-footer-block,
.mkku-footer.uk-section {
  background: #0f172a !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border-top: 0;
  color: #94a3b8;
  padding-top: 48px !important;
  padding-bottom: 28px !important;
  margin-top: 8px;
}

.mkku-footer-inner {
  color: inherit;
}

.mkku-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.4fr;
  gap: 32px 28px;
  margin-bottom: 28px;
}

.mkku-footer__brand {
  max-width: 280px;
}

.mkku-footer__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--mkku-color-lime);
  color: var(--mkku-color-text);
  font-family: var(--mkku-font-display);
  font-weight: 800;
  font-size: 1.15rem;
}

.mkku-footer__name {
  display: block;
  font-family: var(--mkku-font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.mkku-footer__tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #94a3b8;
}

.mkku-footer__h {
  margin: 0 0 14px !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff !important;
}

.mkku-footer a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.mkku-footer a:hover {
  color: var(--mkku-color-lime);
}

.mkku-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mkku-footer li + li {
  margin-top: 10px;
}

.mkku-footer__contacts p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.mkku-footer__addr {
  color: #cbd5e1;
}

.mkku-footer__label {
  display: inline-block;
  margin-bottom: 2px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.mkku-footer__hint {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.8rem;
}

/* Joomla email cloak: keep footer column layout intact */
.mkku-footer joomla-hidden-mail {
  display: inline !important;
  vertical-align: baseline;
  color: inherit;
  font: inherit;
}

.mkku-footer joomla-hidden-mail a,
.mkku-footer joomla-hidden-mail > a {
  display: inline !important;
  color: #e2e8f0;
  font-weight: 600;
  text-decoration: none;
}

.mkku-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.85rem;
  color: #64748b;
}

.mkku-footer__bottom-links a {
  color: #94a3b8;
  font-weight: 600;
}

.mkku-footer .uk-panel,
.mkku-footer .uk-margin {
  margin: 0 !important;
}

.tm-page .uk-card {
  border-radius: var(--mkku-radius-md) !important;
}

@media (max-width: 959px) {
  .mkku-hero-copy .mkku-hero-title,
  .mkku-hero-copy h1 {
    max-width: 100%;
    padding-right: 0;
  }
  .mkku-hero-media {
    margin-top: 8px;
    padding: 28px 8px 72px;
    min-height: 380px;
  }
  .mkku-hero-media::before {
    top: -72px;
    left: -8%;
    right: -4vw;
    height: calc(100% + 140px);
  }
  .mkku-hero-media .mkku-hero-photo {
    width: 88%;
    max-width: none;
    margin: 0 auto !important;
    transform: rotate(5deg);
  }
  .mkku-hero-media .mkku-dod-card {
    left: 2%;
    bottom: 20px;
    width: min(230px, 70%);
    transform: rotate(5deg);
  }
  .mkku-dirs .uk-grid > [class*="uk-width"] { transform: none !important; }
  .mkku-footer__grid { grid-template-columns: 1fr 1fr; }
  .mkku-footer__brand { grid-column: 1 / -1; max-width: none; }
  .mkku-dod-banner { padding: 28px 22px; }
  .mkku-dod-banner__cta { width: 100%; }
  .tm-header .uk-navbar-right > .uk-navbar-nav {
    justify-content: flex-start;
    margin-right: 8px;
  }
}

@media (max-width: 767px) {
  .tm-header, .tm-header-mobile { padding: 0; }
  .tm-header .uk-navbar-container { min-height: 56px; }
  .mkku-hero { padding-inline: var(--mkku-space-2); }
  .mkku-footer__grid { grid-template-columns: 1fr; }
  .mkku-steps__track::before { display: none; }
}
