body,
p,
li,
a,
span,
input,
textarea,
button {
  font-family: "Inter", sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading-text h2,
.heading-text h1 {
  font-family: "Manrope", "Inter", sans-serif !important;
}

.home-preloader {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #050b21;
}

.home-preloader__inner {
  max-width: 360px;
  text-align: center;
  color: #dbe3ff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-preloader__inner img {
  width: min(220px, 60vw);
  height: auto;
  margin: 0 auto 20px;
  display: block;
  animation: homeLogoFloat 1.6s ease-in-out infinite, homeLogoPulse 2.2s ease-in-out infinite;
  filter: drop-shadow(0 8px 20px rgba(42, 63, 149, 0.45));
}

.home-preloader__spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #ffffff;
  animation: homePreloaderSpin 0.9s linear infinite;
}

@keyframes homePreloaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes homeLogoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
}

@keyframes homeLogoPulse {
  0%,
  100% {
    opacity: 0.92;
  }
  50% {
    opacity: 1;
  }
}

body.home-preloader-active {
  overflow: hidden;
}

/* Homepage header must stay transparent at all times */
body.home-page #header:not(.sticky-active):not(.sticky-header) {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: transparent !important;
  background-color: transparent !important;
}

body.home-page #header[data-transparent="true"]:not(.sticky-active):not(.sticky-header) {
  background: transparent !important;
  background-color: transparent !important;
}

body.home-page #header:not(.sticky-active):not(.sticky-header) .header-inner,
body.home-page #header:not(.sticky-active):not(.sticky-header) .header-inner > .container,
body.home-page #header:not(.sticky-active):not(.sticky-header) #mainMenu,
body.home-page #header:not(.sticky-active):not(.sticky-header) #mainMenu > .container {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-bottom: 0 !important;
}

body.home-page #header[data-transparent="true"]:not(.sticky-active):not(.sticky-header) .header-inner {
  background: transparent !important;
  background-color: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body.home-page #header.sticky-active .header-inner,
body.home-page #header.sticky-header .header-inner {
  background: #ffffff !important;
  background-color: #ffffff !important;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08) !important;
}

body.home-page #header.sticky-active #mainMenu nav > ul > li > a,
body.home-page #header.sticky-header #mainMenu nav > ul > li > a {
  color: #111827 !important;
}

#logo img {
  height: 30px;
  width: auto;
  display: block;
  max-width: 165px;
}

#header #logo a > img {
  opacity: 1 !important;
  visibility: visible !important;
}

#header #logo a .logo-default {
  display: block !important;
}

#header #logo a .logo-dark {
  display: none !important;
}

#header[data-transparent="true"] #logo a .logo-dark {
  display: block !important;
}

#header[data-transparent="true"] #logo a .logo-default {
  display: none !important;
}

#header[data-transparent="true"].sticky-active #logo a .logo-dark,
#header[data-transparent="true"].sticky-header #logo a .logo-dark {
  display: none !important;
}

#header[data-transparent="true"].sticky-active #logo a .logo-default,
#header[data-transparent="true"].sticky-header #logo a .logo-default {
  display: block !important;
}

#header .header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
}

#mainMenu nav > ul > li > a {
  font-weight: 600;
  transition: color 0.25s ease, opacity 0.25s ease;
}

#header[data-transparent="true"] .header-inner {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

#header[data-transparent="true"] #mainMenu nav > ul > li > a {
  color: #fff;
}

#header[data-transparent="true"] #mainMenu nav > ul > li > a:hover,
#header[data-transparent="true"] #mainMenu nav > ul > li.current > a {
  color: #EA0F87 !important;
}

#header[data-transparent="true"].sticky-header #mainMenu nav > ul > li > a {
  color: #1f2937;
}

#header.sticky-active .header-inner {
  background: #ffffff !important;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

#header.sticky-active #mainMenu nav > ul > li > a {
  color: #111827 !important;
}

#header.sticky-active #mainMenu nav > ul > li > a:hover,
#header.sticky-active #mainMenu nav > ul > li.current > a {
  color: #EA0F87 !important;
}

#header:not([data-transparent="true"]) .header-inner {
  background: #ffffff !important;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
}

#header:not([data-transparent="true"]) #mainMenu nav > ul > li > a {
  color: #111827 !important;
}

#header:not([data-transparent="true"]) #mainMenu nav > ul > li > a:hover {
  color: #EA0F87 !important;
}

.hero-kurspro {
  position: relative;
  min-height: 62vh;
  background: linear-gradient(rgba(10, 23, 42, 0.64), rgba(10, 23, 42, 0.64)),
    url("../../template/images/slider/revolution/slider-bg-1.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 90px 0;
}

.hero-kurspro .hero-title {
  color: #fff;
  font-size: 46px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-kurspro .hero-subtitle {
  color: #e5eaf0;
  font-size: 19px;
  max-width: 820px;
}

.service-card {
  border: 1px solid #edf0f4;
  border-radius: 12px;
  padding: 26px;
  background: #fff;
  height: 100%;
  box-shadow: 0 12px 30px rgba(17, 31, 55, 0.05);
}

.service-card h3 {
  font-size: 22px;
}

.mono-icon {
  font-family: "Inter", Arial, sans-serif !important;
  font-style: normal !important;
  color: #111827 !important;
}

.icon-box .icon i.svg-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.icon-box .icon i.svg-icon:before {
  content: none !important;
}

.icon-box .icon i.svg-icon svg {
  width: 24px;
  height: 24px;
  stroke: #111827;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Breadcrumb separator fallback (no icon-font dependency) */
.breadcrumb ul li + li:before,
.breadcrumb ol li + li:before {
  content: "›" !important;
  font-family: "Inter", Arial, sans-serif !important;
  font-weight: 600;
}

/* Keep FAQ plus/minus stable even if icon font fails */
.accordion .ac-item .ac-title:before {
  content: "+" !important;
  font-family: inherit !important;
  font-weight: 700;
}

.accordion .ac-item.ac-active .ac-title:before {
  content: "-" !important;
}

.kurspro-contact-submit {
  margin-top: 8px;
}

.select-arrow-wrap {
  position: relative;
}

.select-arrow-wrap:after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 14px;
  pointer-events: none;
}

.select-arrow-wrap select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
  cursor: pointer;
}

.contacts-phone-list {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.contacts-phone-list a {
  display: inline-block;
  min-width: 165px;
  color: inherit;
  text-decoration: none;
}

.contacts-phone-list a:hover {
  color: #EA0F87;
}

#footer address a {
  color: inherit;
}

.developer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
}

#footer .copyright-content .copyright-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.developer-credit svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.9;
}

.developer-credit:hover {
  color: #EA0F87;
}

.footer-brand-logo img {
  height: 30px;
  width: auto;
  display: block;
}

.lead-mini-wrap {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.lead-mini-form {
  text-align: left;
}

.lead-mini-form .row > [class*="col-"] {
  margin-bottom: 10px;
}

.lead-mini-form .form-control {
  height: 44px;
  font-size: 14px;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  border: 1px solid #d1d5db;
}

.lead-mini-form .form-control::placeholder {
  color: #6b7280;
  opacity: 1;
}

.lead-mini-form textarea.form-control {
  min-height: 110px;
  height: auto;
}

.call-to-action .lead-mini-form .form-control {
  border-color: rgba(255, 255, 255, 0.45);
}

.call-to-action .lead-mini-form .btn {
  margin-top: 6px;
}

.call-to-action.background-image {
  margin-bottom: 0;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Fallback arrows for client carousels without icon-font dependency */
.carousel-description-clients .flickity-button.next:before,
.carousel-description-clients .flickity-button.previous:before {
  font-family: "Inter", Arial, sans-serif !important;
  font-weight: 700;
  font-size: 24px;
  line-height: 40px;
}

.carousel-description-clients .flickity-button.previous:before {
  content: "‹" !important;
}

.carousel-description-clients .flickity-button.next:before {
  content: "›" !important;
}

.section-title-kurspro {
  font-size: 34px;
  margin-bottom: 16px;
}

.lead-form {
  border: 1px solid #edf0f4;
  border-radius: 12px;
  padding: 24px;
  background: #fff;
}

.footer-dark-kurspro {
  background: #0e1a2b;
  color: #c9d1dc;
}

.footer-dark-kurspro h5,
.footer-dark-kurspro a {
  color: #fff;
}

.kpi-box {
  border-radius: 12px;
  border: 1px solid #edf0f4;
  padding: 18px;
  background: #fff;
  text-align: center;
}

.kpi-value {
  font-size: 30px;
  font-weight: 700;
  color: #0e1a2b;
}

.news-card img,
.case-card img {
  border-radius: 10px;
  margin-bottom: 14px;
}

.news-card h4,
.case-card h4 {
  font-size: 22px;
  margin-bottom: 8px;
  line-height: 1.22;
}

.news-card h4 a,
.case-card h4 a,
#blog .post-item .post-item-description h2 a {
  transition: color 0.2s ease;
}

.news-card h4 a:hover,
.news-card h4 a:focus,
.case-card h4 a:hover,
.case-card h4 a:focus,
#blog .post-item .post-item-description h2 a:hover,
#blog .post-item .post-item-description h2 a:focus {
  color: #2A3F95 !important;
}

/* Homepage cards: same heading hover behavior */
.case-card a:hover h4,
.case-card a:focus h4,
.news-card a:hover h4,
.news-card a:focus h4 {
  color: #2A3F95 !important;
}

.case-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #374151;
}

/* Тематические карточки с фото (главная) */
.kurspro-img-card {
  position: relative;
  overflow: hidden;
  border: none !important;
  box-shadow: 0 14px 36px rgba(17, 31, 55, 0.14) !important;
  background-size: cover;
  background-position: center;
}

.kurspro-img-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.82) 100%);
  pointer-events: none;
}

.kurspro-img-card h3,
.kurspro-img-card h4,
.kurspro-img-card p {
  position: relative;
  z-index: 1;
}

.kurspro-img-card h3,
.kurspro-img-card h4 {
  color: #fff !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.kurspro-img-card p {
  color: rgba(255, 255, 255, 0.94) !important;
}

.kurspro-img-card--sm {
  border-radius: 12px;
  padding: 1.1rem 1rem 1.15rem !important;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.kurspro-img-card--direction {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Stronger readability overlay for homepage hero image */
#slider.slider-fullscreen .slide .bg-overlay {
  background: linear-gradient(
    180deg,
    rgba(8, 13, 26, 0.95) 0%,
    rgba(8, 13, 26, 0.91) 42%,
    rgba(8, 13, 26, 0.97) 100%
  ) !important;
}

#slider.slider-fullscreen .slide.slide--video-bg {
  overflow: hidden;
}

#slider.slider-fullscreen .slide .slide-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#slider.slider-fullscreen .slide.slide--video-bg .container {
  position: relative;
  z-index: 2;
}

.case-hero-visual {
  position: relative;
  background-color: #1e3a5f;
}

.case-hero-visual .particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.case-hero-visual .container {
  position: relative;
  z-index: 1;
}

.case-project-btn {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.case-project-btn:hover,
.case-project-btn:focus {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
}

.section-muted {
  color: #64748b;
}

.service-hero {
  min-height: 42vh;
  background: linear-gradient(rgba(10, 23, 42, 0.56), rgba(10, 23, 42, 0.56)),
    url("../../template/images/portfolio/65.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
}

.service-hero h1 {
  color: #fff;
  font-size: 44px;
}

.service-hero p {
  color: #e2e8f0;
  max-width: 760px;
}

.startup-dark {
  background: #0f172a;
}

.startup-dark .heading-text h2,
.startup-dark .heading-text p,
.startup-dark,
.startup-dark p {
  color: #e2e8f0;
}

.startup-dark .counter {
  color: #ffffff;
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
}

.startup-dark .counter + p {
  color: #dbe4f4;
}

.case-card img,
.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  background: #e5e7eb;
}

/* Force cropping for news/cases listing cards */
#blog .post-item .post-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e5e7eb;
}

#blog .post-item .post-image > a {
  display: block;
  width: 100%;
  height: 100%;
}

#blog .post-item .post-image > a > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* News cards: keep classic layout, but cleaner and more even */
#blog .post-item {
  display: flex;
}

#blog .post-item .post-item-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#blog .post-item .post-item-description {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

#blog .post-item .post-item-description h2 {
  margin-bottom: 0;
  line-height: 1.22;
}

#blog .post-item .post-item-description h2 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#blog .post-item .post-item-description p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

#blog .post-item .post-item-description .item-link {
  margin-top: auto;
}

/* Header backgrounds: always keep image center visible */
#page-title {
  background-position: center center !important;
}

/* News page: fixed equal rows (no masonry shifting) */
#blog.news-equal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  height: auto !important;
}

#blog.news-equal-grid .post-item {
  width: 100% !important;
  position: static !important;
  margin: 0 !important;
}

/* WYSIWYG output styles */
.wysiwyg-content ul {
  list-style: disc;
  padding-left: 1.35rem;
  margin: 0 0 1rem;
}

.wysiwyg-content ol {
  list-style: decimal;
  padding-left: 1.35rem;
  margin: 0 0 1rem;
}

.wysiwyg-content li {
  margin-bottom: 0.35rem;
}

.wysiwyg-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.wysiwyg-content table th,
.wysiwyg-content table td {
  border: 1px solid #d7dee8;
  padding: 0.55rem 0.7rem;
}

.wysiwyg-content table th {
  background: #f8fafc;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  #blog.news-equal-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  html,
  body {
    overflow-x: hidden;
  }

  #header .header-inner {
    min-height: 64px;
    padding: 0 2px;
  }

  #logo img {
    height: 24px;
    max-width: 132px;
  }

  #mainMenu-trigger {
    margin-left: auto;
    z-index: 1002;
  }

  #mainMenu-trigger .lines-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
  }

  body:not(.mainMenu-open) #mainMenu {
    display: none;
  }

  body.mainMenu-open #mainMenu {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(88vw, 360px);
    height: 100vh;
    overflow-y: auto;
    background: #ffffff !important;
    z-index: 1001;
    box-shadow: -18px 0 36px rgba(15, 23, 42, 0.2);
    padding-top: 72px;
  }

  body.mainMenu-open #mainMenu nav > ul > li > a {
    color: #111827 !important;
    font-size: 25px;
    line-height: 1.35;
    padding: 11px 18px;
  }

  #mainMenu .dropdown > .dropdown-arrow {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    right: 8px;
    color: #111827;
  }

  #mainMenu .dropdown > .dropdown-arrow:before {
    content: "▾";
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
  }

  #mainMenu .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    border: 0;
    box-shadow: none;
    background: #f8fafc;
    padding: 6px 0;
    margin: 2px 0 8px;
  }

  #mainMenu .dropdown-menu > li > a {
    color: #111827 !important;
    font-size: 16px;
    line-height: 1.35;
    padding: 10px 20px;
  }

  #slider.slider-fullscreen .slide .container {
    padding-top: 92px;
    padding-bottom: 26px;
  }

  #slider .slide-captions h1 {
    font-size: clamp(44px, 11vw, 62px);
    line-height: 1.04;
    margin-bottom: 14px;
  }

  #slider .slide-captions .hero-subtitle {
    font-size: 16px;
    line-height: 1.5;
    max-width: 95%;
  }

  #slider .slide-captions .strong {
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  #slider .slide-captions .btn {
    width: 100%;
    margin: 0 0 10px 0 !important;
  }

  .kurspro-img-card--sm {
    min-height: 124px;
    padding: 0.85rem 0.75rem 0.95rem !important;
  }

  .kurspro-img-card--sm h4 {
    font-size: 17px;
    line-height: 1.2;
    margin-bottom: 6px;
  }

  .kurspro-img-card--sm p {
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 0;
  }

  .kurspro-img-card--direction {
    min-height: 176px;
  }

  .kurspro-img-card--direction h3 {
    font-size: 20px;
    line-height: 1.2;
  }

  .kurspro-img-card--direction p {
    font-size: 14px;
    line-height: 1.4;
  }

  #page-title,
  section#page-title,
  [data-bg-parallax] {
    background-position: center center !important;
    background-size: cover !important;
  }

  #page-title {
    padding: 92px 0 42px !important;
  }

  #page-title .page-title h1 {
    font-size: clamp(34px, 9.5vw, 52px);
    line-height: 1.08;
    margin-bottom: 8px;
    word-break: break-word;
  }

  #page-title .page-title span {
    font-size: 16px;
    line-height: 1.45;
  }

  #page-title .breadcrumb {
    margin-top: 8px;
  }

  .heading-text.heading-section h2 {
    font-size: clamp(36px, 10vw, 56px);
    line-height: 1.08;
  }

  .heading-text.heading-section p,
  .heading-text.heading-section .lead {
    font-size: 16px;
    line-height: 1.55;
  }

  .btn,
  .button,
  button.btn,
  a.btn,
  .kurspro-contact-submit {
    min-height: 46px;
    font-size: 14px !important;
    line-height: 1.2;
    padding: 12px 18px !important;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .carousel-description-clients {
    row-gap: 14px;
  }

  .carousel-description-clients .description {
    margin-bottom: 4px;
  }

  .carousel.client-logos {
    padding: 6px 0 2px;
  }

  .carousel.client-logos img {
    width: 100%;
    max-height: 56px;
    object-fit: contain;
    margin: 0 auto;
  }

  .case-hero-visual .page-title h1 {
    font-size: clamp(34px, 9.5vw, 50px);
    line-height: 1.08;
  }

  .post-item .post-item-description,
  .service-card {
    padding: 16px;
  }

  .news-card h4,
  .case-card h4 {
    font-size: 20px;
    line-height: 1.25;
  }

  .wysiwyg-content img,
  .post-item-description img,
  .post-content img,
  .entry-content img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }
}

@media (max-width: 768px) {
  .section-title-kurspro {
    font-size: 28px;
  }
}

@media (max-width: 412px) {
  #slider.slider-fullscreen .slide .container {
    padding-top: 84px;
    padding-bottom: 18px;
  }

  #slider .slide-captions h1 {
    font-size: clamp(38px, 10.4vw, 50px);
    line-height: 1.05;
  }

  #slider .slide-captions .hero-subtitle {
    font-size: 15px;
    line-height: 1.45;
  }

  #slider .slide-captions .m-t-20 {
    margin-top: 14px !important;
  }

  #slider .slide-captions .m-t-40 {
    margin-top: 16px !important;
  }

  .kurspro-img-card--sm {
    min-height: 112px;
    border-radius: 10px;
  }

  .kurspro-img-card--sm h4 {
    font-size: 16px;
  }

  .kurspro-img-card--sm p {
    font-size: 12.5px;
    line-height: 1.3;
  }

  .kurspro-img-card--direction {
    min-height: 160px;
  }

  .kurspro-img-card--direction h3 {
    font-size: 18px;
  }

  .kurspro-img-card--direction p {
    font-size: 13.5px;
  }

  #page-title {
    padding: 82px 0 34px !important;
  }

  #page-title .page-title h1 {
    font-size: clamp(30px, 9.2vw, 42px);
    line-height: 1.1;
  }

  #page-title .page-title span {
    font-size: 15px;
  }

  .heading-text.heading-section h2 {
    font-size: clamp(30px, 9.2vw, 44px);
    line-height: 1.1;
  }

  .heading-text.heading-section p,
  .heading-text.heading-section .lead {
    font-size: 15px;
    line-height: 1.5;
  }

  body.mainMenu-open #mainMenu {
    width: min(92vw, 350px);
    padding-top: 66px;
  }

  body.mainMenu-open #mainMenu nav > ul > li > a {
    font-size: 22px;
    padding: 10px 16px;
  }

  #mainMenu .dropdown-menu > li > a {
    font-size: 15px;
    padding: 9px 18px;
  }

  .carousel.client-logos img {
    max-height: 50px;
  }

  .post-item .post-item-description,
  .service-card {
    padding: 14px;
  }
}

@media (max-width: 375px) {
  #header .header-inner {
    min-height: 60px;
  }

  #logo img {
    height: 22px;
    max-width: 124px;
  }

  #slider .slide-captions h1 {
    font-size: clamp(34px, 9.8vw, 44px);
    line-height: 1.06;
  }

  #slider .slide-captions .hero-subtitle {
    font-size: 14px;
    line-height: 1.4;
  }

  .btn,
  .button,
  button.btn,
  a.btn,
  .kurspro-contact-submit {
    min-height: 44px;
    font-size: 13px !important;
    padding: 10px 14px !important;
  }

  .kurspro-img-card--sm {
    min-height: 104px;
    padding: 0.75rem 0.65rem 0.82rem !important;
  }

  .kurspro-img-card--sm h4 {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .kurspro-img-card--sm p {
    font-size: 12px;
  }

  #page-title .page-title h1 {
    font-size: clamp(28px, 8.8vw, 38px);
  }

  .heading-text.heading-section h2 {
    font-size: clamp(28px, 8.9vw, 38px);
  }

  body.mainMenu-open #mainMenu nav > ul > li > a {
    font-size: 20px;
    line-height: 1.3;
  }
}

/* Final mobile UX refinement layer (mobile only, desktop untouched) */
@media (max-width: 991.98px) {
  body.mainMenu-open {
    overflow: hidden;
  }

  body.mainMenu-open #mainMenu {
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    background: #ffffff !important;
    padding: 78px 20px 20px;
    box-shadow: none;
  }

  body.mainMenu-open #mainMenu .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  body.mainMenu-open #mainMenu nav > ul > li {
    border-bottom: 1px solid #eef2f7;
  }

  body.mainMenu-open #mainMenu nav > ul > li > a {
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    padding: 12px 0;
    text-transform: uppercase;
  }

  #mainMenu .dropdown > .dropdown-arrow {
    right: 0;
    top: 12px;
    width: 28px;
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
  }

  #mainMenu .dropdown > .dropdown-arrow:before {
    content: "+" !important;
    font-size: 16px;
    font-weight: 600;
  }

  #mainMenu .dropdown.hover-active > .dropdown-arrow:before,
  #mainMenu .dropdown.current > .dropdown-arrow:before {
    content: "−" !important;
  }

  #mainMenu .dropdown-menu {
    background: #f8fafc;
    border-radius: 10px;
    margin: 4px 0 10px;
    padding: 6px 10px;
  }

  #mainMenu .dropdown-menu > li > a {
    font-size: 15px;
    line-height: 1.35;
    padding: 8px 6px;
    text-transform: none;
  }

  #slider.slider-fullscreen .slide .container {
    padding-top: 84px;
    padding-bottom: 20px;
  }

  #slider .slide-captions h1 {
    font-size: clamp(34px, 9.2vw, 44px);
    line-height: 1.1;
    margin-bottom: 10px;
  }

  #slider .slide-captions .hero-subtitle {
    font-size: 16px;
    line-height: 1.45;
    max-width: 100%;
    margin-bottom: 12px;
  }

  #slider .slide-captions .strong {
    font-size: 13px;
  }

  #slider .slide-captions .btn {
    min-height: 44px;
    font-size: 14px !important;
  }

  #page-title {
    padding: 78px 0 30px !important;
  }

  #page-title .page-title h1,
  .case-hero-visual .text-left h1 {
    font-size: clamp(35px, 9vw, 43px);
    line-height: 1.1;
    margin-bottom: 8px;
    word-break: break-word;
  }

  #page-title .page-title span {
    font-size: 16px;
    line-height: 1.4;
  }

  #page-title .breadcrumb {
    margin-top: 6px;
    font-size: 13px;
  }

  .portfolio-attributes .attribute {
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .project-description h3 {
    font-size: 17px;
    line-height: 1.45;
  }

  .heading-text.heading-section h2 {
    font-size: clamp(34px, 9vw, 43px);
    line-height: 1.12;
  }

  .heading-text.heading-section p,
  .heading-text.heading-section .lead,
  p {
    line-height: 1.55;
  }

  .service-card,
  .post-item .post-item-description {
    padding: 14px;
    border-radius: 10px;
  }

  .news-card h4,
  .case-card h4 {
    font-size: 18px;
    line-height: 1.3;
  }

  .carousel-description-clients .description {
    margin-bottom: 10px;
  }

  .carousel.client-logos {
    padding-top: 4px;
    padding-bottom: 12px;
    min-height: 110px;
  }

  .carousel.client-logos img {
    max-height: 46px;
    width: 100%;
    object-fit: contain;
  }

  .wysiwyg-content img,
  .post-item-description img,
  .post-content img,
  .entry-content img {
    display: block;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.mainMenu-open #mainMenu {
    padding-top: 72px;
    padding-left: 16px;
    padding-right: 16px;
  }

  body.mainMenu-open #mainMenu nav > ul > li > a {
    font-size: 28px;
  }

  #slider .slide-captions h1 {
    font-size: clamp(32px, 9vw, 40px);
  }

  #page-title .page-title h1,
  .case-hero-visual .text-left h1,
  .heading-text.heading-section h2 {
    font-size: clamp(32px, 8.8vw, 40px);
  }
}

/* Mobile polish v2 based on latest UI feedback */
@media (max-width: 991.98px) {
  #mainMenu nav > ul > li.dropdown:before {
    content: none !important;
    display: none !important;
  }

  body.mainMenu-open #mainMenu {
    padding-top: 74px;
  }

  body.mainMenu-open #mainMenu nav > ul > li > a {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    padding: 12px 0;
  }

  #mainMenu .dropdown > .dropdown-arrow {
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  #mainMenu .dropdown > .dropdown-arrow:before {
    content: "+" !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
  }

  #mainMenu .dropdown > .dropdown-arrow:after {
    content: none !important;
  }

  #mainMenu .dropdown.hover-active > .dropdown-arrow:before,
  #mainMenu .dropdown.current > .dropdown-arrow:before {
    content: "−" !important;
  }

  #mainMenu .dropdown-menu > li > a {
    font-size: 14px;
    line-height: 1.35;
  }

  /* Prevent logo/header overlapping section titles */
  #page-title,
  .case-hero-visual {
    padding-top: 96px !important;
  }

  #page-title .container,
  .case-hero-visual .container {
    padding-top: 18px;
  }

  #page-title .page-title h1,
  .case-hero-visual .text-left h1 {
    font-size: clamp(29px, 8.2vw, 36px) !important;
    line-height: 1.12;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .case-hero-visual .text-left h1 {
    margin-top: 6px;
  }

  /* About page KPI circles: 2 per row on mobile */
  section.background-grey.container-fluid .row.m-b-60 .col-lg-8 > .row {
    display: flex;
    flex-wrap: wrap;
    row-gap: 14px;
  }

  section.background-grey.container-fluid .row.m-b-60 .col-lg-8 > .row > .col-lg-3 {
    width: 50%;
    max-width: 50%;
    flex: 0 0 50%;
    padding-left: 8px;
    padding-right: 8px;
  }

  section.background-grey.container-fluid .row.m-b-60 .col-lg-8 > .row > .col-lg-3 h4 {
    font-size: 17px;
    margin-top: 8px;
    margin-bottom: 6px;
  }

  section.background-grey.container-fluid .row.m-b-60 .col-lg-8 > .row > .col-lg-3 p {
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  #page-title .page-title h1,
  .case-hero-visual .text-left h1 {
    font-size: clamp(27px, 8vw, 33px) !important;
    line-height: 1.14;
  }

  #page-title .page-title span {
    font-size: 14px;
  }

  body.mainMenu-open #mainMenu nav > ul > li > a {
    font-size: 16px;
    padding: 11px 0;
  }
}

/* Homepage hero: extra compact typography for small screens */
@media (max-width: 767.98px) {
  #slider.slider-fullscreen {
    height: auto !important;
    min-height: auto !important;
  }

  #slider.slider-fullscreen .slide {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  #slider.slider-fullscreen .slide .container {
    padding-top: 74px !important;
    padding-bottom: 26px !important;
  }

  #slider .slide-captions {
    max-width: 100%;
  }

  #slider .slide-captions h1 {
    font-size: clamp(27px, 7.8vw, 34px) !important;
    line-height: 1.12 !important;
    margin-bottom: 8px !important;
  }

  #slider .slide-captions .hero-subtitle {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
  }

  #slider .slide-captions .strong {
    font-size: 12px !important;
    letter-spacing: 0.06em;
  }

  #slider .slide-captions .m-t-20 {
    margin-top: 10px !important;
  }

  #slider .slide-captions .m-t-40 {
    margin-top: 12px !important;
  }

  #slider .slide-captions .btn {
    min-height: 42px;
    font-size: 13px !important;
    margin-bottom: 8px !important;
  }
}

@media (max-width: 375.98px) {
  #slider .slide-captions h1 {
    font-size: clamp(24px, 7.2vw, 30px) !important;
    line-height: 1.14 !important;
  }

  #slider .slide-captions .hero-subtitle {
    font-size: 13.5px !important;
    line-height: 1.38 !important;
  }
}
