/* ==========================================================================
   Nova — Mobile responsive styles (LTR + RTL)
   ========================================================================== */

/* --- Header --- */
.nova-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
}

.nova-logo img {
  max-height: 36px;
  width: auto;
}

.nova-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nova-lang-switcher a,
.nova-lang-switcher .nova-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.nova-nav__mega-toggle {
  display: none;
}

.nova-nav__mobile-cta {
  display: none;
}

@media (max-width: 1024px) {
  .nova-hero__title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
  }

  .nova-hero__sub_title {
    font-size: clamp(1rem, 3vw, 1.35rem);
    line-height: 1.4;
  }

  .nova-section-title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    line-height: 1.2;
  }

  .nova-reports .nova-reports__header h2 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    line-height: 1.2;
  }
}

@media (max-width: 768px) {
  :root {
    --nova-header-height: 72px;
  }

  .container,
  .nova-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nova-header__inner {
    gap: 10px;
  }

  .nova-logo img {
    max-height: 32px;
  }

  .nova-nav {
    position: fixed;
    top: var(--nova-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.98);
    padding: 20px 16px 32px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform var(--nova-transition), opacity var(--nova-transition);
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nova-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    height: 100%;
    min-height: 400px;
  }

  .nova-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nova-nav__list > li {
    height: auto;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nova-nav__list > li.has-mega-menu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
  }

  .nova-nav__list > li:last-child {
    border-bottom: 0;
  }

  .nova-nav__link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 4px;
    font-size: 15px;
    grid-column: 1;
  }

  li:not(.has-mega-menu) > .nova-nav__link::after {
    display: none;
  }

  .nova-nav__mega-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 4px 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    background: transparent;
    color: var(--nova-lime);
    cursor: pointer;
    grid-column: 2;
    grid-row: 1;
    flex-shrink: 0;
  }

  .nova-nav__mega-toggle::before {
    content: "+";
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
  }

  .has-mega-menu.is-mega-open > .nova-nav__mega-toggle::before {
    content: "−";
  }

  .has-mega-menu {
    position: relative;
  }

  .nova-mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    display: none;
    grid-column: 1 / -1;
    width: 100%;
  }

  .has-mega-menu.is-mega-open .nova-mega-menu {
    display: block;
  }

  .nova-mega-menu .nova-container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .nova-mega-menu .mega-menu-bg {
    padding: 0 0 16px;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .mega-menu__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mega-item {
    min-height: 0;
    padding-bottom: 12px;
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .mega-item.is-active,
  .mega-item:hover {
    border-left: none;
    border-bottom: 2px solid var(--nova-lime);
    padding-left: 0;
  }

  .mega-desc {
    margin-left: 0;
    margin-right: 0;
  }

  .mega-item__header {
    flex-wrap: wrap;
  }

  .mega-title .arrow {
    display: inline-block;
  }

  .mega-menu__footer {
    justify-content: flex-start;
    margin-top: 8px;
  }

  .nova-nav__mobile-cta {
    display: flex;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nova-nav__mobile-cta .nova-btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }

  .nova-header__cta {
    display: none;
  }

  .nova-lang-switcher {
    margin-inline-start: auto;
    margin-inline-end: 0;
  }

  .nova-nav-toggle {
    display: flex;
    z-index: 2;
  }

  /* Hero */
  .wrraper {
    background-position: center top;
  }

  .nova-hero,
  .nova-section {
    padding-top: calc(var(--nova-header-height) + 32px);
    padding-bottom: 64px;
  }

  .nova-hero__grid {
    gap: 32px;
  }

  .nova-hero__title {
    font-size: clamp(1.875rem, 9vw, 2.625rem);
    line-height: 1.12;
    letter-spacing: 0;
    word-break: break-word;
  }

  html[dir="rtl"] .nova-hero__title {
    letter-spacing: 0;
  }

  .nova-hero__desc {
    font-size: 16px;
    line-height: 1.6;
    max-width: none;
  }

  .nova-hero__visual {
    height: auto;
    min-height: 240px;
  }
  .nova-reports__bento, .nova-report-card:last-child{
        grid-template-columns: 1fr;
  }
  .nova-hero__actions,
  .nova-platform .nova-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nova-hero__actions .nova-btn,
  .nova-platform .nova-hero__actions .sign-up {
    width: 100%;
    justify-content: center;
  }

  .nova-platform .nova-hero__actions {
    gap: 12px;
  }

  .nova-btn {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding: 12px 20px;
    font-size: 15px;
  }

  .nova-section-header {
    margin-bottom: 32px;
  }

  .nova-section-desc,
  .nova-section-desc--light {
    max-width: none;
    font-size: 16px;
    line-height: 1.6;
  }

  .nova-about__green-box {
    min-height: 0;
  }
  .nova-section-title{
    font-size: 40px!important;
  }
  .nova-why__item:first-child {
    border-top: 0;
  }

  .nova-impact__photo {
    min-height: 260px;
  }

  .nova-reports__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nova-footer__watermark {
    font-size: clamp(4rem, 28vw, 7rem);
    bottom: -20px;
    max-width: 100%;
    overflow: hidden;
  }

  .nova-footer__bottom {
    text-align: center;
    padding: 40px 0 48px;
  }
  
  .nova-footer__legal {
    justify-content: center;
  }
  .nova-footer__bottom p {
    line-height: 1.6;
  }

  .nova-video-modal {
    padding: 16px;
  }

  .nova-video-modal__close {
    top: -40px;
  }

  /* Inner pages — shared heroes */
  .hero {
    padding: calc(var(--nova-header-height) + 40px) 0 48px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: none;
    word-break: break-word;
  }

  .hero p {
    font-size: clamp(0.95rem, 3.5vw, 1.125rem);
    line-height: 1.6;
    text-transform: none;
  }

  .detail-hero {
    min-height: auto;
    padding: calc(var(--nova-header-height) + 48px) 0 64px;
    background-position: center;
  }

  .detail-hero h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: 0;
    word-break: break-word;
  }

  .hero-desc {
    font-size: 16px;
    line-height: 1.6;
    margin: 24px auto !important;
    padding: 0 8px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0 8px;
  }

  .hero-actions .cta-btn-filled,
  .hero-actions .cta-btn-outline-white {
    width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
  }

  .top-tag,
  .bottom-tag {
    letter-spacing: 0.05em;
  }

  .bottom-tag {
    font-size: 18px;
    line-height: 1.4;
  }

  .white-section,
  .gray-section,
  .dark-section {
    padding: 64px 0;
  }

  .measure-section h2,
  .gray-section h2,
  .dark-section .decision-title h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.2;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .step-grid,
  .advantage-grid,
  .white-section .advantage-grid:nth-child(odd),
  .white-section .advantage-grid:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .integrity-section {
    padding: 64px 16px;
  }

  .integrity-section .main-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    line-height: 1.3;
  }

  .integrity-section .cards-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .integrity-section .card {
    width: 100%;
    max-width: 100%;
  }
  .nova-platform .nova-hero__actions .sign-up{
    justify-content: center;
  }
  /* Reports & Blog archive */
  .reports-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 64px 0;
  }

  .reports-grid.blog {
    padding-top: 48px;
  }

  .card-img {
    height: 240px;
  }

  .card-content h3 {
    font-size: 20px;
    line-height: 1.3;
  }

  .pagination,
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .bottom-cta {
    padding: 64px 0;
  }

  .bottom-cta h2 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    line-height: 1.3;
    padding: 0 8px;
  }

  .bottom-cta .cta-btn-filled {
    display: inline-flex;
    width: calc(100% - 32px);
    max-width: 420px;
    justify-content: center;
    white-space: normal;
    line-height: 1.35;
  }

  /* Solution page */
  .solution {
    overflow-x: clip;
  }

  .solution .hero {
    min-height: auto;
    padding: calc(var(--nova-header-height) + 32px) 0 48px;
    align-items: flex-start;
  }

  .solution .hero-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .solution .hero-content {
    text-align: start;
  }

  .solution .hero-content h1 {
    font-size: clamp(1.875rem, 8vw, 2.75rem);
    line-height: 1.12;
    margin-bottom: 20px;
    text-transform: none;
  }

  .solution .standard-badge {
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0;
    margin-bottom: 20px;
    max-width: 100%;
  }

  .solution .description {
    font-size: 16px;
    max-width: none;
    text-transform: none;
  }

  .solution .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .solution .hero-btns .btn {
    width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
    padding: 14px 20px;
  }

  .solution .hero-stats {
    width: 100%;
    border-left: none;
    border-top: 1px solid #333;
    padding-left: 0;
    padding-top: 24px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .solution .stat-row {
    gap: 12px;
    flex-wrap: wrap;
  }

  .solution .stat-row .label {
    font-size: 12px;
    line-height: 1.4;
    flex: 1 1 140px;
    text-align: left;
  }
  html[dir="rtl"] .solution .stat-row .label{
    text-align: right;
  }
  .solution .stat-row .value {
    font-size: 18px;
    flex-shrink: 0;
  }

  .solution .roles-section {
    padding: 64px 0;
  }

  .solution .section-title,
  .roles-grid-section .text-side .title,
  .development-section .main-title,
  .features-section .section-title,
  .key-advantages .advantages-title h2,
  .competency-section .section-title,
  .quality-section .quality-main-title,
  .sector-coverage-section .sector-main-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    line-height: 1.15;
  }

  .solution .section-desc {
    margin-bottom: 24px;
  }

  .solution .roles-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .solution .roles-menu {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 5px;
  }

  .solution .role-item {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
    padding: 14px 12px;
    font-size: 11px;
  }

  .solution .content-card,
  .solution .role-panel {
    padding: 28px 20px;
  }

  .solution .quote {
    font-size: 1.25rem;
    padding-inline-start: 20px;
    margin-bottom: 32px;
  }

  .solution .detail-col {
    padding: 20px;
  }

  .solution .details-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .solution .process-section {
    padding: 64px 0;
  }

  .solution .main-heading {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 28px;
    padding: 0 4px;
  }

  .solution .steps-container {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .solution .steps-card,
  .solution .steps-card.offset-down {
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding: 28px 24px;
  }

  .solution .steps-card p {
    min-height: 0;
  }

  .solution .steps-card:not(:last-child)::after {
    display: none;
  }

  .roles-grid-section {
    padding: 64px 0;
  }

  .roles-grid-section .main-wrapper,
  .development-section .dev-flex,
  .competency-section .content-wrapper {
    flex-direction: column;
    gap: 32px;
  }

  .roles-grid-section .text-side {
    max-width: none;
  }

  .roles-grid-section .text-side .title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .roles-grid-section .text-side .description {
    margin-bottom: 32px;
  }

  .roles-grid-section .cards-side {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .roles-grid-section .role-card {
    min-height: 0;
    padding: 28px 24px;
  }

  .development-section {
    padding: 64px 0;
  }

  .development-section .report-card-wrapper,
  .development-section .content-side {
    min-width: 0;
    width: 100%;
  }

  .development-section .report-card {
    padding: 24px;
    box-shadow: 12px 12px 0 var(--nova-grey-100);
  }

  .development-section .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
  }

  .development-section .user-info h3 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    word-break: break-word;
  }

  .development-section .overall-score {
    text-align: start;
  }

  .development-section .main-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .development-section .description {
    font-size: 16px;
  }

  .competency-section {
    padding: 64px 0;
  }

  .competency-section .content-wrapper {
    text-align: start;
  }

  .competency-section .text-content p {
    max-width: none;
    font-size: 16px;
  }

  .competency-section .features {
    align-items: stretch;
  }

  .competency-section .feature-item {
    text-align: start;
  }

  .competency-section .mockup-container {
    width: 100%;
    max-width: none;
  }

  .competency-section .screen-body {
    padding: 20px 16px;
  }

  .competency-section .header-title {
    font-size: 9px;
    line-height: 1.3;
    padding: 0 36px;
    text-align: center;
  }

  .competency-section .dots {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  .competency-section .section-info {
    flex-wrap: wrap;
    gap: 8px;
  }

  .competency-section .question {
    font-size: 16px;
  }

  .competency-section .option {
    padding: 12px 14px;
    align-items: flex-start;
  }

  .competency-section .option label {
    font-size: 13px;
    line-height: 1.45;
  }

  .features-section {
    padding: 64px 0;
  }

  .features-section .section-title {
    margin-bottom: 40px;
  }

  .features-section .features-grid,
  .quality-section .quality-grid {
    grid-template-columns: 1fr;
  }

  .features-section .feature-card {
    padding: 36px 24px;
  }

  .sector-coverage-section {
    padding: 64px 0;
  }

  .sector-coverage-section .sector-subtitle {
    font-size: 16px;
    max-width: none;
  }

  .sector-coverage-section .sectors-grid {
    grid-template-columns: 1fr;
  }

  .quality-section {
    padding: 64px 0;
  }

  .quality-section .checklist-box {
    padding: 24px 20px;
  }

  .quality-section .check-text h4 {
    font-size: 16px;
  }

  /* Contact */
  .contact-section {
    padding: 48px 0 80px;
  }

  .contact-wrapper {
    min-height: 0;
  }

  .contact-info-side,
  .contact-form-side {
    padding: 32px 20px;
  }

  .contact-info-side .info-title,
  .contact-form-side .form-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  /* Single post/article */
  .entry-content {
    overflow-wrap: anywhere;
  }

  .entry-content img,
  .entry-content iframe,
  .entry-content video {
    max-width: 100%;
    height: auto;
  }

  .fixed-adv-icon {
    position: static;
    margin-top: 16px;
  }

  .adv-card {
    padding: 28px 20px;
  }

  .step-card .step-num {
    font-size: 40px;
    line-height: 1;
  }

  /* Landing sections */
  .nova-why__grid {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .nova-lang-switcher a,
  .nova-lang-switcher .nova-lang-link {
    min-width: 32px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .nova-phone-mockup {
    width: min(150px, 42vw);
    height: auto;
    max-height: 280px;
  }

  .nova-phone-mockup--back {
    right: 10%;
  }

  .nova-phone-mockup--front {
    right: 28%;
  }

  .nova-video-player__play {
    width: 64px;
    height: 64px;
  }

  .video-txt {
    font-size: 18px;
    line-height: 1.3;
  }

  .solution .hero-btns .btn,
  .nova-form--cf7 .wpcf7-submit {
    letter-spacing: 0;
    text-transform: none;
  }

  .solution .role-item {
    font-size: 10px;
    padding: 12px 14px;
  }

  .competency-section .question {
    font-size: 15px;
  }

  .development-section .report-card {
    padding: 20px 16px;
    box-shadow: 8px 8px 0 var(--nova-grey-100);
  }

  .roles-grid-section .black-card .plus-text {
    font-size: 32px;
  }
}
