/**
 * NK Mobile & Tablet — На Кръстопът
 * Applies only below 992px (phones + small tablets).
 * Desktop / laptop (≥992px): unchanged.
 */

/* ── Tablet & below (≤991.98px) ─────────────────────────────────────────── */
@media (max-width: 991.98px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  html {
    overscroll-behavior-x: none;
  }

  body {
    overflow-x: clip;
    overscroll-behavior-x: none;
  }

  @supports not (overflow-x: clip) {
    body {
      overflow-x: hidden;
    }
  }

  .container,
  .container-fluid {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  img,
  svg,
  video,
  canvas {
    max-width: 100%;
    height: auto;
  }

  /* Header: [ Logo ] ————————— [ ☰ ] */
  .nk-site-header .navbar-bottom > .container {
    padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
  }

  .nk-header-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 64px;
    padding: 8px 0;
  }

  .nk-header-brand {
    margin-right: auto !important;
    padding-right: 0 !important;
    flex: 0 1 auto;
    min-width: 0;
  }

  .nk-header-brand__name {
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Без backdrop-filter върху менюто (блокира кликове) */
  .navbar-bottom-wrapper {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Hamburger — центрирани, равни линии (само mobile; .nav-toggle от main.css се нулира) */
  .nk-header-toggle {
    order: 2;
    flex-shrink: 0;
    margin: 0 !important;
    margin-left: auto !important;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 0.2s ease;
    z-index: 10003;
  }

  .nk-header-toggle:hover,
  .nk-header-toggle:focus-visible {
    background: rgba(30, 136, 255, 0.08);
    outline: none;
  }

  .nk-header-toggle span {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: block;
    width: 20px;
    height: 1.25px;
    margin: 0;
    flex-shrink: 0;
    background: var(--nk-text, #0b1220);
    border-radius: 1px;
    transform: none;
    transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
  }

  .nk-header-toggle.active span {
    background: var(--nk-accent, #1e88ff);
  }

  .nk-header-toggle.active span:nth-child(1) {
    transform: translateY(7.25px) rotate(45deg) !important;
  }

  .nk-header-toggle.active span:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) !important;
  }

  .nk-header-toggle.active span:nth-child(3) {
    transform: translateY(-7.25px) rotate(-45deg) !important;
  }

  /* Скриване на desktop CTA в лентата (само в drawer) */
  .nk-header-bar > .nk-header-cta {
    display: none !important;
  }

  /* Off-canvas drawer — извън stacking context на header bar */
  .nk-site-header .nk-header-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    z-index: 10002;
    width: min(300px, 86vw);
    max-width: min(300px, calc(100vw - env(safe-area-inset-left, 0px)));
    height: 100dvh;
    height: 100vh;
    margin: 0 !important;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: -12px 0 40px rgba(11, 18, 32, 0.14);
    border-left: 1px solid rgba(15, 23, 42, 0.06);
    transform: translate3d(100%, 0, 0) !important;
    visibility: hidden;
    pointer-events: none;
    touch-action: pan-y;
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.32s step-end;
  }

  .nk-site-header .nk-header-menu.active {
    transform: translate3d(0, 0, 0) !important;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s step-start;
  }

  .nk-header-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    min-height: 56px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
  }

  .nk-header-menu__title {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--nk-text, #0b1220);
  }

  .nk-header-menu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(30, 136, 255, 0.08);
    color: var(--nk-accent, #1e88ff);
    font-size: 1.125rem;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .nk-header-menu__close:hover,
  .nk-header-menu__close:focus-visible {
    background: rgba(30, 136, 255, 0.14);
    outline: none;
  }

  .nk-header-menu__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1;
    margin: 0;
    padding: 8px 10px max(20px, env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    list-style: none;
  }

  .nk-header-menu__list li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }

  .nk-header-menu__list li:last-child {
    border-bottom: none;
  }

  .nk-header-menu__list li a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: var(--nk-text, #0b1220) !important;
    text-decoration: none !important;
    white-space: normal;
    word-break: break-word;
    border-radius: 10px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(30, 136, 255, 0.12);
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nk-header-menu__list li a::after {
    display: none !important;
  }

  .nk-header-menu__list li a:hover,
  .nk-header-menu__list li a:focus-visible {
    color: var(--nk-accent, #1e88ff) !important;
    background: rgba(30, 136, 255, 0.06);
  }

  .nk-header-menu__list li a.active {
    color: var(--nk-accent, #1e88ff) !important;
    background: rgba(30, 136, 255, 0.08);
  }

  .nk-header-menu__cta-item {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  }

  .nk-header-menu__contact {
    gap: 10px;
    color: var(--nk-accent, #1e88ff) !important;
    font-weight: 700 !important;
  }

  .nk-header-menu__contact i {
    font-size: 1rem;
    flex-shrink: 0;
  }

  .nk-header-menu__contact.active {
    background: rgba(30, 136, 255, 0.1) !important;
  }

  /* Затъмняване — под менюто, над съдържанието */
  .nk-mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(11, 18, 32, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    touch-action: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  body.nk-mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  body.nk-mobile-nav-open .nk-mobile-nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* main.css scaleX/swipe — изключено за NK drawer */
  .navbar-bottom-wrapper .menu.nk-header-menu:not(.active),
  .nk-site-header .nk-header-menu:not(.active) {
    transform: translate3d(100%, 0, 0) !important;
    opacity: 1 !important;
  }

  /* Homepage hero */
  .nk-hero-section {
    padding: 20px 0 32px;
  }

  .nk-hero-section .nk-hero-card {
    width: calc(100% - 20px);
    padding: 32px 20px 28px;
    border-radius: 20px;
  }

  .nk-hero-section .nk-hero-line {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
  }

  .nk-hero-section .nk-hero-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }

  .nk-hero-section .nk-hero-line--soft {
    font-size: 0.58em;
    line-height: 1.35;
  }

  .nk-hero-network {
    height: min(220px, 42vw);
    margin-top: 12px;
  }

  /* Inner page heroes */
  .page-hero-wrap {
    padding-top: 0.75rem !important;
  }

  .page-header {
    overflow: hidden;
    max-width: 100%;
  }

  .page-header .title,
  .page-header__subtitle {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .page-header__subtitle {
    padding-inline: 4px;
  }

  .page-header--network-bg .page-header__scene {
    overflow: hidden;
  }

  .page-header--network-bg .page-header__network-svg {
    transform: scale(1.05);
    transform-origin: center center;
  }

  /* Нашите решения */
  .ourSolution-grid {
    max-width: 100%;
    width: 100%;
    gap: 1.25rem;
    padding-inline: 4px;
  }

  .ourSolution-grid .ourSolution__item {
    width: 100%;
    max-width: 100%;
    padding: 1.15rem 1rem 1.35rem;
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
      0 8px 28px rgba(11, 18, 32, 0.06),
      inset 0 0 0 1px rgba(37, 99, 235, 0.08);
  }

  .ourSolution-grid .service-card {
    max-width: min(100%, 240px);
  }

  .ourSolution-grid .service-card img,
  .ourSolution-grid .service-card__img {
    height: clamp(160px, 42vw, 200px);
  }

  .ourSolution__content h4,
  .ourSolution__content p {
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .ourSolution__more-btn {
    width: 100%;
    max-width: 280px;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
  }

  .ourSolution-detail {
    scroll-margin-top: 80px;
    padding-inline: 0;
  }

  .ourSolution-detail-card {
    padding: 1.15rem 1rem 1.35rem;
    border-radius: 18px;
  }

  .ourSolution-detail-section-indicator__label {
    font-size: clamp(0.65rem, 2.8vw, 0.78rem);
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
  }

  .ourSolution-detail-copy,
  .ourSolution-detail__body {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* How it works / Help — вертикален scroll, без горни tabs */
  .how-it-works-intro {
    padding-inline: 4px;
    text-align: left;
  }

  .how-it-works-page .how-it-works-nav {
    display: none !important;
  }

  /* Заглавие/икона на секцията — само в sticky индикатора (без дублиране) */
  .how-it-works-page .how-it-works-service[data-nk-scroll-section] > .how-it-works-service__header {
    display: none !important;
  }

  .how-it-works-page .how-it-works-service[data-nk-scroll-section] > .how-it-works-service__badge {
    display: none !important;
  }

  /* Скрол секции — без подзаглавие в картата (само в sticky индикатора) */
  .how-it-works-page .how-it-works-service[data-nk-scroll-section] .how-it-works-service__summary {
    display: none !important;
  }

  .how-it-works-page .how-it-works-service[data-nk-scroll-section],
  .hiw-mission-hero[data-nk-scroll-section],
  .hiw-mission-blocks[data-nk-scroll-section] {
    scroll-margin-top: 132px;
  }

  /* Sticky индикатор — една икона + едно заглавие (като FAQ) */
  .nk-mobile-section-indicator {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 920;
    margin: 0;
    padding: 0;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    isolation: isolate;
    contain: layout style paint;
  }

  .nk-mobile-section-indicator.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nk-mobile-section-indicator__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 0.6rem max(14px, env(safe-area-inset-left, 0px)) 0.6rem max(14px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    background: #ffffff;
    border: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(11, 18, 32, 0.07);
    overflow: hidden;
  }

  .nk-mobile-section-indicator__icon {
    order: 0;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #00c2ff 100%);
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
  }

  .nk-mobile-section-indicator__icon .bi {
    display: block;
    line-height: 1;
  }

  .nk-mobile-section-indicator__icon .nk-service-icon-svg,
  #nk-mobile-section-indicator-icon .nk-service-icon-svg {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
  }

  .nk-mobile-section-indicator__title {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: clamp(1.0625rem, 4.2vw, 1.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #0b1220;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
  }

  .nk-mobile-section-indicator__title::before,
  .nk-mobile-section-indicator__title::after {
    display: none !important;
    content: none !important;
  }

  .nk-mobile-section-indicator__inner > :not(.nk-mobile-section-indicator__icon):not(.nk-mobile-section-indicator__title) {
    display: none !important;
  }

  .how-it-works-accordion .accordion-button {
    padding: 1rem 1rem 1rem 0.25rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    word-break: break-word;
  }

  .help-contact-cards {
    grid-template-columns: 1fr;
  }

  .help-contact-card--wide {
    grid-column: 1;
  }

  /* Homepage — „Защо да бъдете част от На Кръстопът“ (mobile + tablet) */
  .nk-community-trust-section {
    overflow-x: clip;
    max-width: 100%;
  }

  .nk-premium-page .nk-community-trust-section > .container {
    padding: clamp(1rem, 3.5vw, 1.35rem) clamp(0.75rem, 4vw, 1.15rem);
    max-width: 100%;
    box-sizing: border-box;
  }

  .nk-community-trust-section__header {
    margin-bottom: 1.15rem !important;
    padding-inline: 0.1rem;
  }

  .nk-community-trust-section__lead,
  .nk-community-trust-section .section-title,
  .nk-community-trust-row__title,
  .nk-community-trust-row__text {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .nk-community-trust-rows {
    gap: 1rem;
  }

  .nk-community-trust-row {
    border-radius: 16px !important;
  }

  .nk-community-trust-row__figure {
    min-height: 200px;
    border-radius: 16px 16px 0 0;
  }

  .nk-community-trust-row__img {
    min-height: 200px;
    max-width: 100%;
  }

  .nk-community-trust-row__body {
    min-height: 0;
    padding: 1.1rem 1rem 1.25rem;
  }

  .nk-community-trust-row__title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
  }

  .nk-community-trust-row__title::after {
    width: 2.5rem;
    margin-top: 0.5rem;
  }

  .nk-community-trust-row__text {
    font-size: 0.875rem;
    line-height: 1.65;
  }

  .nk-community-trust-row--image-left .nk-community-trust-row__content,
  .nk-community-trust-row--image-right .nk-community-trust-row__content {
    border: none;
  }

  /* App download — телефон (само устройство + син glow) */
  .nk-premium-page .app-download-section .nk-app-phone-visual {
    width: 100% !important;
    max-width: 100%;
    min-height: 260px;
    padding-bottom: 1.25rem;
    overflow: visible;
  }

  .nk-app-phone-visual__device {
    width: 37%;
    max-width: 37%;
    height: auto;
  }

  .nk-app-phone-visual__glow {
    width: min(78%, 280px);
    height: min(82%, 360px);
    filter: blur(16px);
  }

  .nk-app-phone-visual__shine {
    width: min(62%, 200px);
    bottom: 6%;
  }

  /* Legal / content pages */
  .nk-premium-page .nk-premium-card,
  .privacy-policy-content,
  .privacy-policy-card,
  .editor-content {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .privacy-policy-content table,
  .editor-content table,
  .nk-premium-card table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .privacy-policy-content table thead,
  .privacy-policy-content table tbody,
  .privacy-policy-content table tr,
  .editor-content table thead,
  .editor-content table tbody,
  .editor-content table tr {
    display: table;
    width: 100%;
    min-width: 480px;
  }

  /* Contact */
  .contact-section img {
    max-width: min(100%, 320px);
    height: auto;
    margin-inline: auto;
    display: block;
  }

  .contact-info-wrapper {
    max-width: 100%;
    flex-direction: column;
    gap: 1.25rem;
  }

  .contact-info-wrapper .item {
    width: 100%;
  }

  .contact-info-wrapper .item .cont {
    width: auto;
    flex: 1;
    min-width: 0;
  }

  .nk-contact-emails__item,
  .nk-contact-emails__item .txt,
  .nk-contact-emails__item a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Footer */
  footer .footer__wrapper {
    flex-direction: column;
  }

  footer .footer__wrapper-widget {
    width: 100% !important;
    max-width: 100% !important;
    padding: 28px 20px;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
  }

  footer .footer__wrapper-widget:last-child {
    border-bottom: none;
  }

  footer .footer__wrapper-widget .cont,
  footer .footer__wrapper-widget p {
    max-width: 100%;
  }

  footer .footer__wrapper-link li a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 0;
  }

  footer .app-btns {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  footer .app-btns > div {
    width: 100%;
  }

  footer .app-btns .d-flex.gap-3 {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem !important;
  }

  /* Newsletter — без застъпване; input + бутон на един ред, ако има място */
  .newsletter-section .row.g-4 {
    --bs-gutter-y: 1rem;
  }

  .newsletter-section .col-lg-8,
  .newsletter-section .col-lg-4 {
    width: 100%;
    max-width: 100%;
  }

  .newsletter--wrapper {
    overflow: hidden;
    border-radius: 18px;
  }

  .newsletter--wrapper .position-relative {
    padding: 1.25rem 1rem !important;
  }

  .newsletter--wrapper h4 {
    margin-bottom: 0.5rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .newsletter--wrapper .text-white.opacity-75 {
    margin-bottom: 0;
    line-height: 1.45;
  }

  .newsletter-right {
    width: 100%;
    max-width: 100%;
  }

  .newsletter-form {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    position: relative;
    z-index: 1;
  }

  .newsletter-form .form-control {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: 100%;
    height: 46px;
    min-height: 46px;
    margin: 0;
    padding: 0 1rem;
    border-radius: 999px;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(11, 18, 32, 0.08);
  }

  .newsletter-form .cmn--btn {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    flex: 0 0 auto;
    width: auto;
    min-width: 7.5rem;
    max-width: 42%;
    height: 46px;
    min-height: 46px;
    margin: 0;
    padding: 0 0.85rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32);
  }

  /* Forms & buttons (touch-friendly) */
  .form-control,
  .form-select,
  textarea.form-control {
    font-size: 16px;
    min-height: 48px;
  }

  .cmn--btn,
  .btn,
  button.ourSolution__more-btn {
    min-height: 44px;
  }

  /* Modals & popups */
  .modal-dialog {
    margin: 0.75rem auto;
    max-width: calc(100% - 1.5rem);
  }

  .modal-content {
    border-radius: 16px;
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
  }

  .modal-body {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Stats / sections */
  .basic-info-wrapper .basic-info-item {
    padding: 1rem 0.5rem;
  }

  .section-title,
  h2.section-title {
    overflow-wrap: anywhere;
    word-break: break-word;
    padding-inline: 4px;
  }

  .platform-section .shape {
    display: none !important;
  }

  .owl-carousel .owl-stage-outer {
    overflow: hidden;
  }

  .testimonial__item {
    padding: 1rem !important;
  }
}

/* ── Phone (≤767.98px) ──────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .nk-hero-section .nk-hero-logo {
    width: min(148px, 40vw);
  }

  .page-header--oae.page-header--mobility {
    min-height: 188px;
  }

  .page-header__glass {
    padding: 20px 16px 24px;
  }

  .ourSolution-grid .ourSolution__item {
    margin-inline: auto;
  }

  .service-card--detail {
    max-width: 100% !important;
  }

  .hiw-mission-hero__visual-wrap {
    min-height: 180px;
  }

  .how-it-works-service__figure img,
  .how-it-works-service__img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
  }
}

/* ── Small phone (≤575.98px) ─────────────────────────────────────────────── */
@media (max-width: 575.98px) {
  .nk-header-brand__name {
    font-size: 0.95rem;
    max-width: min(38vw, 140px);
  }

  .nk-hero-section .nk-hero-card {
    width: calc(100% - 12px);
    padding: 28px 16px 24px;
    border-radius: 18px;
  }

  .nk-hero-section .nk-hero-logo {
    width: 132px;
  }

  .nk-hero-network {
    height: 200px;
    opacity: 0.55;
  }

  .page-header {
    padding: 32px 12px;
    border-radius: 14px;
  }

  .page-header .title {
    font-size: clamp(1.35rem, 6.5vw, 1.5rem);
    line-height: 1.25;
  }

  .page-header__subtitle {
    font-size: 0.875rem;
    margin-top: 10px;
  }

  .ourSolution-grid {
    gap: 1rem;
  }

  .ourSolution-grid .service-card {
    max-width: min(100%, 220px);
  }

  .ourSolution-grid .service-card img,
  .ourSolution-grid .service-card__img {
    height: clamp(150px, 44vw, 180px);
  }

  .ourSolution__more-btn {
    max-width: 100%;
  }

  .ourSolution-detail-card {
    padding: 1rem 0.85rem 1.2rem;
  }

  .nk-premium-card,
  .hiw-info-panel,
  .how-it-works-service {
    padding: 1rem 0.9rem 1.15rem;
  }

  footer .footer-bottom {
    padding: 1rem max(16px, env(safe-area-inset-left, 0px)) !important;
    font-size: 0.8125rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .newsletter-form {
    gap: 0.4rem;
  }

  .newsletter-form .form-control {
    height: 44px;
    min-height: 44px;
    padding-inline: 0.85rem;
  }

  .newsletter-form .cmn--btn {
    min-width: 6.75rem;
    max-width: 46%;
    height: 44px;
    min-height: 44px;
    padding-inline: 0.65rem;
    font-size: 0.75rem;
  }
}

/* ── Narrow phones / iPhone SE (≤390px) ──────────────────────────────────── */
@media (max-width: 390px) {
  .newsletter-form {
    flex-wrap: wrap;
    justify-content: stretch;
    gap: 0.55rem;
  }

  .newsletter-form .form-control {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .newsletter-form .cmn--btn {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    min-width: 8.5rem;
    margin-inline: auto;
    align-self: center;
  }

  .nk-mobile-section-indicator {
    top: 60px;
  }

  .nk-mobile-section-indicator__icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .nk-mobile-section-indicator__title {
    font-size: 0.9375rem;
  }
}

@media (max-width: 390px) {
  .nk-header-menu__list li a {
    font-size: 0.875rem !important;
    padding: 10px 12px !important;
  }

  .nk-hero-section .nk-hero-line--accent {
    font-size: 1em;
  }

}
