/*
 * NovaSync IT — premium visual system.
 * Loaded after the base stylesheet so upgrades remain maintainable.
 */

:root {
  --ns-accent: #2457ff;
  --ns-accent-dark: #173dcc;
  --ns-accent-soft: #edf2ff;
  --ns-dark: #0b1220;
  --ns-ink: #101828;
  --ns-muted: #5e6b82;
  --ns-line: #e3e8f2;
  --ns-surface: #f5f7fb;
  --ns-success: #12a879;
  --ns-shadow-sm: 0 12px 36px rgba(15, 30, 60, .07);
  --ns-shadow-lg: 0 30px 90px rgba(15, 30, 60, .14);
  --ns-radius-sm: 14px;
  --ns-radius: 24px;
  --ns-radius-lg: 34px;
  --ns-container: 1320px;
}

body {
  color: var(--ns-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ns-container { width: min(calc(100% - 48px), var(--ns-container)); }

h1, h2, h3 {
  color: var(--ns-ink);
  text-wrap: balance;
}

.ns-section { padding: clamp(84px, 9vw, 132px) 0; }
.ns-section--soft { background: #f5f7fb; }
.ns-section--dark { background: #09111f; }

.ns-button {
  min-height: 50px;
  padding: 13px 21px;
  border-radius: 13px;
  box-shadow: 0 10px 26px rgba(36, 87, 255, .18);
  font-size: .82rem;
  letter-spacing: -.01em;
}

.ns-button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(36, 87, 255, .25); }
.ns-button--soft { box-shadow: none; }
.ns-kicker { color: var(--ns-accent); font-size: .72rem; letter-spacing: .13em; }

/* Header */
.ns-topbar { background: #080f1b; }
.ns-topbar__inner { min-height: 34px; }
.ns-site-header { background: rgba(255,255,255,.9); border-color: rgba(214,222,236,.8); }
.ns-header-inner { min-height: 86px; }
.ns-brand { font-size: 1.08rem; }
.ns-brand__mark { width: 38px; height: 38px; border-radius: 12px; box-shadow: 0 10px 24px rgba(36,87,255,.22); }
.ns-primary-nav ul { gap: 27px; }
.ns-primary-nav a { font-size: .82rem; font-weight: 760; }
.ns-header-cta { padding-inline: 20px; }

/* Homepage hero */
.ns-hero {
  min-height: auto;
  padding: clamp(82px, 8vw, 116px) 0 clamp(88px, 9vw, 130px);
  background:
    radial-gradient(circle at 83% 17%, rgba(74, 118, 255, .18), transparent 25%),
    radial-gradient(circle at 64% 96%, rgba(18, 168, 121, .07), transparent 24%),
    linear-gradient(135deg, #f7f9fd 0%, #fff 53%, #eef3ff 100%);
}

.ns-hero::before {
  position: absolute;
  inset: auto auto -160px -130px;
  width: 460px;
  height: 460px;
  content: "";
  border: 1px solid rgba(36,87,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(36,87,255,.025), 0 0 0 140px rgba(36,87,255,.018);
}

.ns-hero::after { opacity: .22; background-size: 56px 56px; }
.ns-hero__inner { grid-template-columns: minmax(0, 1.02fr) minmax(500px, .98fr); gap: clamp(60px, 7vw, 105px); }
.ns-hero__copy { max-width: 700px; }
.ns-hero__copy h1 { max-width: 700px; margin: 18px 0 26px; font-size: clamp(3.35rem, 4.4vw, 4.85rem); line-height: .98; letter-spacing: -.058em; }
.ns-hero__copy > p { max-width: 590px; margin-bottom: 31px; font-size: 1.05rem; line-height: 1.75; }
.ns-hero__visual { min-height: 540px; }

.ns-hero-console {
  position: absolute;
  inset: 22px 0 20px 14px;
  overflow: hidden;
  padding: 24px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(75,123,255,.22), transparent 24%),
    linear-gradient(145deg, #101a2c, #080e19 72%);
  box-shadow: 0 42px 100px rgba(10, 24, 50, .28);
}

.ns-hero-console::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(#000, transparent 80%);
}

.ns-hero-console__top,
.ns-hero-console__status,
.ns-hero-console__main,
.ns-hero-console__footer { position: relative; z-index: 1; }
.ns-hero-console__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.09); }
.ns-hero-console__brand { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.78); font-size: .62rem; font-weight: 850; letter-spacing: .12em; }
.ns-hero-console__brand svg { width: 22px; color: #7297ff; }
.ns-hero-console__live { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.52); font-size: .62rem; }
.ns-hero-console__live i,
.ns-hero-console__status > span i { width: 7px; height: 7px; border-radius: 50%; background: #41d6a3; box-shadow: 0 0 0 6px rgba(65,214,163,.1); }
.ns-hero-console__status { display: flex; align-items: end; justify-content: space-between; padding: 23px 0 20px; }
.ns-hero-console__status > div { display: flex; flex-direction: column; }
.ns-hero-console__status small { color: rgba(255,255,255,.46); font-size: .66rem; }
.ns-hero-console__status strong { margin-top: 7px; font-size: 3.4rem; line-height: 1; letter-spacing: -.065em; }
.ns-hero-console__status > span { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding: 8px 10px; color: #aeeed7; border: 1px solid rgba(65,214,163,.15); border-radius: 999px; background: rgba(65,214,163,.06); font-size: .59rem; }
.ns-hero-console__main { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; }
.ns-console-chart,
.ns-console-events { min-height: 190px; padding: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; background: rgba(255,255,255,.035); }
.ns-console-chart__legend { display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.5); font-size: .62rem; }
.ns-console-chart__legend strong { color: #65dcaf; font-size: .68rem; }
.ns-console-chart__bars { display: flex; height: 130px; align-items: end; gap: 7px; padding-top: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ns-console-chart__bars i { width: 8.33%; height: 25%; border-radius: 4px 4px 1px 1px; background: linear-gradient(#7297ff, #2457ff); box-shadow: 0 0 16px rgba(36,87,255,.16); }
.ns-console-chart__bars i:nth-child(2) { height: 38%; }
.ns-console-chart__bars i:nth-child(3) { height: 31%; }
.ns-console-chart__bars i:nth-child(4) { height: 50%; }
.ns-console-chart__bars i:nth-child(5) { height: 46%; }
.ns-console-chart__bars i:nth-child(6) { height: 68%; }
.ns-console-chart__bars i:nth-child(7) { height: 58%; }
.ns-console-chart__bars i:nth-child(8) { height: 81%; }
.ns-console-chart__bars i:nth-child(9) { height: 72%; }
.ns-console-chart__bars i:nth-child(10) { height: 88%; }
.ns-console-chart__bars i:nth-child(11) { height: 78%; }
.ns-console-chart__bars i:nth-child(12) { height: 96%; }
.ns-console-events > span { display: block; margin-bottom: 16px; color: rgba(255,255,255,.5); font-size: .62rem; }
.ns-console-events p { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 8px; margin: 0; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.07); }
.ns-console-events p i { width: 7px; height: 7px; border-radius: 50%; background: #7297ff; }
.ns-console-events p i.is-green { background: #41d6a3; }
.ns-console-events p i.is-violet { background: #aa8cff; }
.ns-console-events p strong { color: rgba(255,255,255,.78); font-size: .6rem; font-weight: 700; }
.ns-console-events p small { color: rgba(255,255,255,.35); font-size: .55rem; }
.ns-hero-console__footer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.ns-hero-console__footer > span { display: grid; grid-template-columns: 8px 1fr; gap: 2px 8px; padding: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.025); }
.ns-hero-console__footer i { grid-row: span 2; width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: #41d6a3; }
.ns-hero-console__footer small { color: rgba(255,255,255,.4); font-size: .52rem; }
.ns-hero-console__footer strong { font-size: .82rem; }
.ns-float-card { min-width: 174px; padding: 14px 16px; border-color: rgba(255,255,255,.72); border-radius: 16px; box-shadow: 0 20px 54px rgba(17,31,57,.16); }
.ns-float-card--experience { top: -5px; right: -28px; }
.ns-float-card--experts { bottom: -4px; left: -24px; }
.ns-float-card--reviews { right: -42px; bottom: 76px; }
.ns-float-card__number { font-size: 1.65rem; }

/* Partner band */
.ns-trust { padding: 32px 0 54px; background: #fff; }
.ns-trust__label { margin-bottom: 18px; font-size: .65rem; }
.ns-trust__set .ns-trust__item { min-width: 190px; min-height: 68px; margin: 0 6px; padding: 13px 25px; border-radius: 15px; box-shadow: none; }

/* Shared headings */
.ns-section-heading { margin-bottom: 48px; }
.ns-section-heading > div { max-width: 760px; }
.ns-section-heading h2,
.ns-maintenance__content h2 { font-size: clamp(2.35rem, 4.25vw, 4.1rem); line-height: 1.02; letter-spacing: -.052em; }
.ns-section-heading > p { max-width: 500px; font-size: .98rem; line-height: 1.7; }

/* Process */
.ns-process-panel { padding: clamp(44px, 5vw, 70px); border: 1px solid rgba(255,255,255,.08); background: linear-gradient(145deg, #101a2b, #080f1a 70%); }
.ns-process-panel__intro { max-width: 760px; margin-bottom: 46px; }
.ns-process-panel__intro h2 { font-size: clamp(2.35rem, 4.3vw, 4rem); line-height: 1.03; }
.ns-process-grid { margin-bottom: 0; }
.ns-process-step { min-height: 210px; padding: 27px 25px; border-color: rgba(255,255,255,.09); }
.ns-process-step__number { margin-bottom: 42px; }

/* Service cards */
.ns-services-grid { gap: 20px; }
.ns-service-card { display: flex; min-height: 310px; padding: 29px; flex-direction: column; border-color: #e1e7f0; background: linear-gradient(145deg, #fff, #fbfcff); box-shadow: 0 8px 28px rgba(16,34,68,.045); }
.ns-service-card:hover { border-color: rgba(36,87,255,.25); box-shadow: 0 24px 58px rgba(16,34,68,.11); transform: translateY(-5px); }
.ns-service-card__icon { width: 52px; height: 52px; margin-bottom: 31px; border-radius: 15px; }
.ns-service-card__eyebrow { margin: -14px 0 11px; font-size: .61rem; }
.ns-service-card h2,
.ns-service-card h3 { margin: 0 0 11px; font-size: 1.3rem; line-height: 1.2; }
.ns-service-card p { max-width: 90%; padding-right: 24px; line-height: 1.65; }
.ns-service-card__arrow { right: 23px; bottom: 23px; width: 39px; height: 39px; background: #fff; }
.ns-service-card__sla { margin: auto 48px 0 0; }
.ns-service-card--archive { min-height: 360px; }
.ns-service-card--archive .ns-text-link { margin: 18px 48px 0 0; }

/* Monitoring and numbers */
.ns-maintenance { background: linear-gradient(180deg, #fff, #f6f8fc); }
.ns-monitor { min-height: 490px; background: radial-gradient(circle at 80% 10%, rgba(71,119,255,.28), transparent 26%), linear-gradient(145deg, #101a2b, #080f1a); }
.ns-stats { box-shadow: 0 18px 50px rgba(16,34,68,.07); }
.ns-stat { padding: 31px; }
.ns-stat strong { font-size: clamp(2rem, 3.3vw, 2.8rem); }

/* Plans */
.ns-plans-grid { gap: 22px; }
.ns-plan-card { min-height: 530px; padding: 32px; border-color: #dde4ef; box-shadow: 0 12px 40px rgba(16,34,68,.06); }
.ns-plan-card--featured { border-color: #101b2d; background: linear-gradient(150deg, #13213a, #09111e 75%); box-shadow: 0 28px 74px rgba(9,17,30,.2); }
.ns-plan-card__badge { position: static; align-self: flex-start; margin: 0 0 17px; padding: 7px 10px; }
.ns-plan-card h2,
.ns-plan-card h3 { margin: 0 0 12px; color: var(--ns-ink); font-size: 1.55rem; line-height: 1.12; }
.ns-plan-card--featured h2,
.ns-plan-card--featured h3 { color: #fff; }
.ns-plan-card__intro { min-height: 64px; line-height: 1.65; }
.ns-plan-card__price { min-height: 72px; margin: 12px 0 25px; }
.ns-plan-card__price strong { padding-bottom: 20px; font-size: clamp(2rem, 3vw, 2.65rem); }
.ns-plan-card__price span { padding-bottom: 21px; }
.ns-plan-card ul { gap: 11px; margin-bottom: 29px; }
.ns-plan-card .ns-text-link { margin-top: 16px; text-align: center; }

/* Project cards */
.ns-projects-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.ns-project-card,
.ns-project-card:nth-child(2),
.ns-project-card:nth-child(3),
.ns-project-card:last-child { display: flex; min-height: 480px; grid-column: auto; flex-direction: column; overflow: hidden; border: 1px solid #dfe5ef; background: #fff; box-shadow: 0 12px 40px rgba(16,34,68,.06); }
.ns-project-card__media { position: relative; inset: auto; display: block; height: 260px; flex: 0 0 260px; overflow: hidden; background: linear-gradient(145deg, #13213a, #2457ff); }
.ns-project-card__pattern { background: radial-gradient(circle at 78% 18%, rgba(113,151,255,.8) 0 3%, transparent 3.5%), radial-gradient(circle at 78% 18%, transparent 0 17%, rgba(255,255,255,.16) 17.5% 18%, transparent 18.5%), radial-gradient(circle at 78% 18%, transparent 0 32%, rgba(255,255,255,.08) 32.5% 33%, transparent 33.5%), linear-gradient(145deg, #111d32, #2457ff); }
.ns-project-card:nth-child(2) .ns-project-card__pattern { background: radial-gradient(circle at 75% 25%, transparent 0 20%, rgba(255,255,255,.17) 20.5% 21%, transparent 21.5%), linear-gradient(145deg, #231943, #7259dd); }
.ns-project-card:nth-child(3) .ns-project-card__pattern { background: radial-gradient(circle at 72% 24%, transparent 0 21%, rgba(255,255,255,.18) 21.5% 22%, transparent 22.5%), linear-gradient(145deg, #0c2930, #12a879); }
.ns-project-card__content { position: static; display: flex; min-height: 220px; padding: 27px; flex: 1; flex-direction: column; border: 0; border-radius: 0; background: #fff; box-shadow: none; backdrop-filter: none; }
.ns-project-card__content h2,
.ns-project-card__content h3 { margin: 0 0 12px; color: var(--ns-ink); font-size: 1.28rem; line-height: 1.22; }
.ns-project-card__content p { margin: auto 0 0; color: var(--ns-muted); line-height: 1.6; }
.ns-project-card__result { top: auto; right: 17px; bottom: 17px; }

/* Testimonials */
.ns-testimonial-wrap { grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 7vw, 90px); }
.ns-testimonial-visual { min-height: 440px; background: linear-gradient(145deg, #2457ff, #112e8d); }
.ns-testimonial__quote { margin-bottom: 28px; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.14; letter-spacing: -.045em; }
.ns-testimonial-slides { min-height: 320px; }

/* Blog cards */
.ns-post-card { border: 1px solid #dfe5ef; box-shadow: 0 10px 34px rgba(16,34,68,.055); }
.ns-post-card:hover { transform: translateY(-5px); box-shadow: 0 24px 58px rgba(16,34,68,.11); }
.ns-featured-post { min-height: 480px; background: linear-gradient(145deg, #13213a, #09111e); }

/* Archive heroes — fixes low contrast and clipping visible in the previous build */
.ns-page-hero--premium {
  min-height: 500px;
  padding: 88px 0;
  color: #fff;
  background: radial-gradient(circle at 84% 16%, rgba(74,120,255,.3), transparent 28%), linear-gradient(135deg, #09111e, #111d32 62%, #19305b);
}
.ns-page-hero--premium h1,
.ns-page-hero--premium h2 { max-width: 830px; margin: 14px 0 22px; color: #fff !important; font-size: clamp(3.1rem, 5.2vw, 5.2rem); line-height: .98; letter-spacing: -.058em; }
.ns-page-hero--premium p { max-width: 690px; color: rgba(255,255,255,.7); font-size: 1.06rem; line-height: 1.7; }
.ns-page-hero--premium .ns-kicker { color: #88a6ff; }
.ns-page-hero__grid { gap: 76px; }
.ns-page-hero__signal { max-width: 280px; justify-self: end; }
.ns-filter-bar { margin-bottom: 38px; background: #f6f8fc; }

/* Dedicated pages and articles */
.ns-service-hero,
.ns-plan-hero { padding: clamp(85px, 9vw, 125px) 0; }
.ns-service-hero h1,
.ns-plan-hero h1 { font-size: clamp(3.2rem, 5.5vw, 5.5rem); line-height: .96; }
.ns-plan-hero__offer { border-radius: 26px; }
.ns-article-hero h1 { max-width: 980px; margin-inline: auto; color: #fff; font-size: clamp(3.1rem, 5.6vw, 5.5rem); line-height: .97; }
.ns-value-card h2,
.ns-support-card h2 { color: #fff; }

/* 404 */
.ns-404 { position: relative; overflow: hidden; padding: clamp(90px, 11vw, 150px) 0; background: radial-gradient(circle at 80% 20%, rgba(36,87,255,.12), transparent 25%), #f5f7fb; }
.ns-404__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.65fr); align-items: center; gap: 80px; }
.ns-404 h1 { max-width: 760px; margin: 15px 0 22px; font-size: clamp(3.2rem, 5.6vw, 5.6rem); line-height: .96; letter-spacing: -.058em; }
.ns-404__visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; color: #fff; border-radius: 50%; background: linear-gradient(145deg, #2457ff, #0e2a84); box-shadow: 0 35px 90px rgba(36,87,255,.24); }
.ns-404__visual strong { font-size: clamp(4rem, 9vw, 8rem); letter-spacing: -.09em; }
.ns-404__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

@media (max-width: 1120px) {
  .ns-hero__inner { grid-template-columns: 1fr 460px; gap: 45px; }
  .ns-hero__copy h1 { font-size: clamp(3.1rem, 5.6vw, 4.25rem); }
  .ns-float-card--reviews { right: -12px; }
  .ns-float-card--experience { right: -8px; }
}

@media (max-width: 900px) {
  .ns-container { width: min(calc(100% - 36px), var(--ns-container)); }
  .ns-section { padding: 82px 0; }
  .ns-hero { padding: 72px 0 90px; }
  .ns-hero__inner { grid-template-columns: 1fr; }
  .ns-hero__copy { max-width: 760px; }
  .ns-hero__copy h1 { max-width: 760px; font-size: clamp(3.2rem, 9vw, 5rem); }
  .ns-hero__visual { width: min(100%, 620px); min-height: 540px; justify-self: center; }
  .ns-services-grid,
  .ns-projects-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ns-plans-grid { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
  .ns-plan-card { min-height: auto; }
  .ns-page-hero--premium { min-height: 430px; padding: 74px 0; }
  .ns-page-hero--premium h1 { font-size: clamp(3rem, 8vw, 4.6rem); }
  .ns-404__grid { grid-template-columns: 1fr; }
  .ns-404__visual { width: min(70%, 330px); justify-self: center; }
}

@media (max-width: 620px) {
  .ns-container { width: min(calc(100% - 28px), var(--ns-container)); }
  .ns-topbar { display: none; }
  .ns-header-inner { min-height: 72px; gap: 14px; }
  .ns-brand__mark { width: 35px; height: 35px; }
  .ns-hero { padding: 58px 0 72px; }
  .ns-hero__copy h1 { margin-top: 13px; font-size: clamp(2.65rem, 13.1vw, 4rem); line-height: .98; }
  .ns-hero__copy > p { font-size: .98rem; }
  .ns-hero__actions { display: grid; grid-template-columns: 1fr; }
  .ns-hero__actions .ns-button { justify-content: center; }
  .ns-hero__visual { min-height: 420px; margin-top: 18px; }
  .ns-hero-console { inset: 0; padding: 17px; border-radius: 22px; }
  .ns-hero-console__status strong { font-size: 2.65rem; }
  .ns-hero-console__status > span { display: none; }
  .ns-hero-console__main { grid-template-columns: 1fr; }
  .ns-console-events { display: none; }
  .ns-console-chart { min-height: 168px; }
  .ns-console-chart__bars { height: 108px; }
  .ns-hero-console__footer { grid-template-columns: 1fr 1fr; }
  .ns-hero-console__footer > span:last-child { display: none; }
  .ns-float-card { min-width: 145px; padding: 11px 13px; }
  .ns-float-card--experience { top: -18px; right: -3px; }
  .ns-float-card--experts { bottom: -18px; left: -3px; }
  .ns-float-card--reviews { display: none; }
  .ns-section { padding: 70px 0; }
  .ns-section-heading { display: block; margin-bottom: 34px; }
  .ns-section-heading > p { margin-top: 20px; }
  .ns-section-heading h2,
  .ns-maintenance__content h2 { font-size: clamp(2.2rem, 10vw, 3.1rem); }
  .ns-services-grid,
  .ns-projects-grid { grid-template-columns: 1fr; }
  .ns-service-card { min-height: 285px; }
  .ns-project-card,
  .ns-project-card:last-child { min-height: 440px; }
  .ns-project-card__media { height: 230px; flex-basis: 230px; }
  .ns-testimonial__quote { font-size: 2rem; }
  .ns-page-hero--premium { min-height: 390px; padding: 65px 0; }
  .ns-page-hero--premium h1 { font-size: clamp(2.65rem, 12vw, 3.8rem); }
  .ns-page-content { padding: 65px 0 80px; }
  .ns-404 h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .ns-console-chart__bars i { transition: none; }
}
