/*
Theme Name: Lightning NSD Child
Theme URI: https://example.com/
Description: Lightning child theme for Near System Design one-page corporate site.
Author: Near System Design
Template: lightning
Version: 3.4.0
Text Domain: lightning-nsd-child
*/

:root {
  --nsd-bg: #f3f0d4;
  --nsd-main: #99d1ff;
  --nsd-main-strong: #8abce6;
  --nsd-main-dark: #2f7db7;
  --nsd-text: #263238;
  --nsd-muted: #5b676b;
  --nsd-white: #ffffff;
  --nsd-line: rgba(38, 50, 56, 0.14);
  --nsd-shadow: 0 14px 36px rgba(38, 50, 56, 0.12);
  --nsd-radius: 8px;
  --nsd-header-offset: 92px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nsd-header-offset);
}

body {
  background: var(--nsd-bg);
  color: var(--nsd-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.nsd-landing-page {
  background: var(--nsd-bg);
}

body.nsd-landing-page .site-header {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 22px rgba(38, 50, 56, 0.08);
  backdrop-filter: blur(10px);
}

.site-header .custom-logo {
  max-height: 52px;
  width: auto;
}

.site-header .site-title a,
.site-header .navbar-brand {
  color: var(--nsd-text);
  font-weight: 800;
  letter-spacing: 0;
}

.global-nav-list a,
.vk-mobile-nav-menu-btn {
  color: var(--nsd-text);
}

.nsd-page-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(38, 50, 56, 0.1);
  box-shadow: 0 4px 18px rgba(38, 50, 56, 0.08);
  backdrop-filter: blur(10px);
}

.nsd-page-header__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.nsd-page-header__logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--nsd-text);
  text-decoration: none;
}

.nsd-page-header__logo img,
.nsd-page-header__logo .custom-logo,
.nsd-page-header__logo-image {
  max-width: 220px;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nsd-page-header__logo-text {
  color: var(--nsd-text);
  font-size: 1.8144rem;
  font-weight: 900;
  letter-spacing: 0;
}

.nsd-page-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nsd-page-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--nsd-text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nsd-page-nav a:hover,
.nsd-page-nav a:focus {
  background: var(--nsd-main);
  color: var(--nsd-text);
  text-decoration: none;
  transform: translateY(-1px);
}

.nsd-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(38, 50, 56, 0.18);
  border-radius: var(--nsd-radius);
  background: #ffffff;
  color: var(--nsd-text);
}

.nsd-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nsd-page-header.is-nav-open .nsd-menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nsd-page-header.is-nav-open .nsd-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.nsd-page-header.is-nav-open .nsd-menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nsd-page {
  background:
    linear-gradient(180deg, rgba(153, 209, 255, 0.2), rgba(153, 209, 255, 0) 360px),
    var(--nsd-bg);
}

.nsd-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nsd-section {
  padding: 88px 0;
}

.nsd-section__head {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nsd-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--nsd-main-dark);
  font-size: 0.94rem;
  font-weight: 800;
}

.nsd-eyebrow::before {
  content: none !important;
  display: none !important;
}

.nsd-heading-line {
  display: block;
  width: min(100%, 760px);
  height: 2px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: var(--nsd-main);
}

.nsd-eyebrow + .nsd-heading-line {
  margin-top: 14px;
}

.nsd-section h1,
.nsd-section h2,
.nsd-section h3 {
  color: var(--nsd-text);
  line-height: 1.35;
  letter-spacing: 0;
}

.nsd-section h2 {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 850;
}

.nsd-section__head h2::before,
.nsd-section__head h2::after {
  content: none !important;
  display: none !important;
}

.nsd-section__lead {
  margin: 14px 0 0;
  color: var(--nsd-muted);
  font-size: 1.365rem;
  font-weight: 850;
  line-height: 1.9;
}

.nsd-hero {
  min-height: calc(100vh - var(--nsd-header-offset));
  padding: 64px 0 72px;
  display: flex;
  align-items: center;
}

.nsd-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.nsd-hero__content {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.nsd-hero h1 {
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.1rem);
  font-weight: 900;
  white-space: nowrap;
}

.nsd-hero__copy {
  margin: 24px 0 0;
  color: var(--nsd-text);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  line-height: 2;
}

.nsd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 30px;
  padding: 14px 24px;
  border: 2px solid var(--nsd-text);
  border-radius: 999px;
  background: var(--nsd-main);
  color: var(--nsd-text);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 0 rgba(38, 50, 56, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nsd-hero__content .nsd-button {
  margin-right: auto;
  margin-left: auto;
}

.nsd-button:hover,
.nsd-button:focus {
  color: var(--nsd-text);
  background: #8fffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 0 rgba(38, 50, 56, 0.14);
}

.nsd-hero__media {
  position: relative;
  width: 100%;
}

.nsd-logo-story {
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--nsd-radius);
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 58%, #69c6de 58% 100%);
  box-shadow: var(--nsd-shadow);
}

.nsd-logo-story__mark {
  width: min(100%, 345px);
  display: grid;
  place-items: center;
  justify-self: center;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.nsd-logo-story__image {
  max-width: 100%;
  max-height: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nsd-logo-story__text-logo {
  color: var(--nsd-text);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0;
}

.nsd-logo-story__body {
  max-width: 760px;
}

.nsd-logo-story__title {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: var(--nsd-text);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1.45;
}

.nsd-logo-story__title::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin: 0.75em 0;
  border-radius: 999px;
  background: #000000;
}

.nsd-logo-story__text {
  margin: 0;
  color: var(--nsd-text);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  font-weight: 400;
  line-height: 2;
}

.nsd-hero__image {
  width: 100%;
  height: min(48vw, 560px);
  min-height: 420px;
  object-fit: cover;
  border-radius: var(--nsd-radius);
  box-shadow: var(--nsd-shadow);
}

.nsd-hero__placeholder {
  min-height: 440px;
  border-radius: var(--nsd-radius);
  background:
    radial-gradient(circle at 18% 22%, rgba(153, 209, 255, 0.95) 0 70px, transparent 72px),
    linear-gradient(135deg, #ffffff 0%, #ffffff 46%, rgba(153, 209, 255, 0.5) 46% 100%);
  box-shadow: var(--nsd-shadow);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.nsd-hero__note {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: 260px;
  padding: 18px;
  border-radius: var(--nsd-radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(38, 50, 56, 0.12);
  font-weight: 800;
  line-height: 1.7;
}

.nsd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.nsd-card {
  height: 100%;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--nsd-radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(38, 50, 56, 0.08);
}

.nsd-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 0 20px;
  border-radius: var(--nsd-radius);
  object-fit: cover;
  background: var(--nsd-bg);
  box-shadow: inset 0 0 0 1px rgba(38, 50, 56, 0.08);
}

.nsd-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: var(--nsd-radius);
  background: var(--nsd-main);
  color: var(--nsd-text);
  font-weight: 900;
}

.nsd-card h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
  font-weight: 850;
  text-align: center;
}

.nsd-card p {
  margin: 0;
  color: var(--nsd-muted);
  line-height: 1.9;
}

.nsd-card--compact {
  min-height: 188px;
  text-align: center;
}

.nsd-card--compact .nsd-card__badge {
  margin-right: auto;
  margin-left: auto;
}

.nsd-card--compact h3 {
  margin-bottom: 0;
  line-height: 1.65;
}

.nsd-services {
  background: rgba(255, 255, 255, 0.32);
}

.nsd-service-grid {
  align-items: stretch;
}

.nsd-service-group {
  margin-top: 42px;
}

.nsd-service-group__title {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  color: var(--nsd-text);
  font-size: 1.365rem;
  font-weight: 850;
  line-height: 1.9;
  text-align: center;
}

.nsd-service-group__title::before,
.nsd-service-group__title::after {
  content: none !important;
  display: none !important;
}

.nsd-service-image {
  margin: 0 0 34px;
}

.nsd-service-image img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--nsd-radius);
  box-shadow: var(--nsd-shadow);
}

.nsd-steps {
  display: grid;
  gap: 18px;
  counter-reset: nsd-step;
}

.nsd-step {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
  padding: 26px;
  border-radius: var(--nsd-radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(38, 50, 56, 0.07);
}

.nsd-step__number {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--nsd-main);
  color: var(--nsd-text);
  font-weight: 900;
}

.nsd-step__image {
  display: block;
  width: min(100%, 420px);
  aspect-ratio: 4 / 3;
  border-radius: var(--nsd-radius);
  object-fit: cover;
  background: var(--nsd-bg);
  box-shadow: 0 10px 24px rgba(38, 50, 56, 0.08);
}

.nsd-step h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  font-weight: 850;
}

.nsd-step p {
  margin: 0;
  color: var(--nsd-muted);
  line-height: 1.9;
}

.nsd-company {
  max-width: 820px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--nsd-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--nsd-shadow);
}

.nsd-company dl {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  margin: 0;
}

.nsd-company dt,
.nsd-company dd {
  margin: 0;
  padding: 22px 24px;
  border-bottom: 1px solid var(--nsd-line);
  line-height: 1.8;
}

.nsd-company dt {
  background: rgba(153, 209, 255, 0.28);
  font-weight: 850;
}

.nsd-company dd {
  background: rgba(255, 255, 255, 0.72);
}

.nsd-contact {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(153, 209, 255, 0.16));
}

.nsd-clients {
  background: rgba(255, 255, 255, 0.26);
}

.nsd-client-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.nsd-client-item {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid rgba(38, 50, 56, 0.1);
  border-radius: var(--nsd-radius);
  background: rgba(255, 255, 255, 0.88);
  color: var(--nsd-muted);
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(38, 50, 56, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nsd-client-item:hover,
.nsd-client-item:focus {
  background: #ffffff;
  color: var(--nsd-text);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(38, 50, 56, 0.1);
}

.nsd-footer {
  background: var(--nsd-main-strong);
  color: var(--nsd-text);
}

.nsd-footer__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.2fr);
  gap: 36px;
  align-items: start;
  padding: 52px 0 42px;
}

.nsd-footer__name {
  margin: 0 0 12px;
  color: var(--nsd-text);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
}

.nsd-footer__address {
  margin: 0 0 12px;
  color: rgba(38, 50, 56, 0.88);
  font-weight: 800;
  line-height: 1.8;
}

.nsd-footer__copy {
  max-width: 520px;
  margin: 0;
  color: rgba(38, 50, 56, 0.86);
  line-height: 1.9;
}

.nsd-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.nsd-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: rgba(38, 50, 56, 0.92);
  font-weight: 750;
  text-decoration: none;
}

.nsd-footer__nav a::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--nsd-text);
}

.nsd-footer__nav a:hover,
.nsd-footer__nav a:focus {
  color: var(--nsd-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nsd-footer__bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(38, 50, 56, 0.18);
  text-align: center;
}

.nsd-footer__bottom p {
  margin: 0;
  color: rgba(38, 50, 56, 0.78);
  font-size: 0.92rem;
}

.nsd-contact__box {
  max-width: 840px;
  margin: 0 auto;
  padding: 34px;
  border-radius: var(--nsd-radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--nsd-shadow);
}

.nsd-contact__fallback {
  margin: 22px 0 0;
  padding: 18px;
  border: 1px dashed var(--nsd-main-dark);
  border-radius: var(--nsd-radius);
  color: var(--nsd-muted);
  line-height: 1.8;
}

.nsd-contact .wpcf7-form p {
  margin-bottom: 18px;
}

.nsd-contact .wpcf7-form p:has(.wpcf7-submit) {
  text-align: center;
}

.nsd-contact label {
  display: block;
  color: var(--nsd-text);
  font-weight: 800;
}

.nsd-contact input[type="text"],
.nsd-contact input[type="email"],
.nsd-contact input[type="tel"],
.nsd-contact textarea {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(38, 50, 56, 0.22);
  border-radius: var(--nsd-radius);
  background: #fff;
  color: var(--nsd-text);
  font-size: 16px;
}

.nsd-contact textarea {
  min-height: 180px;
  resize: vertical;
}

.nsd-contact input[type="submit"],
.nsd-contact .wpcf7-submit {
  display: block;
  min-width: 190px;
  min-height: 52px;
  margin: 8px auto 0;
  border: 2px solid var(--nsd-text);
  border-radius: 999px;
  background: var(--nsd-main);
  color: var(--nsd-text);
  font-weight: 850;
  box-shadow: 0 8px 0 rgba(38, 50, 56, 0.18);
}

.nsd-contact input[type="submit"]:hover,
.nsd-contact .wpcf7-submit:hover {
  background: #8fffff;
}

.nsd-required {
  margin-left: 0.35em;
  color: #b52222;
  font-size: 0.88em;
}

@media (max-width: 991px) {
  :root {
    --nsd-header-offset: 76px;
  }

  .nsd-hero {
    min-height: auto;
    padding-top: 64px;
  }

  .nsd-grid,
  .nsd-client-list {
    grid-template-columns: 1fr;
  }

  .nsd-hero__media {
    min-height: 320px;
  }

  .nsd-logo-story {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nsd-logo-story__mark {
    width: min(100%, 220px);
  }

  .nsd-logo-story__image {
    max-height: 180px;
  }

  .nsd-footer__inner {
    grid-template-columns: 1fr;
  }

  .nsd-hero h1 {
    font-size: clamp(2rem, 6.5vw, 3.6rem);
  }
}

@media (max-width: 640px) {
  .nsd-page-header__inner {
    width: min(100% - 20px, 1180px);
    min-height: 70px;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 10px 0;
    position: relative;
  }

  .nsd-page-header__logo {
    min-width: 0;
  }

  .nsd-page-header__logo-text {
    font-size: clamp(1.1rem, 5vw, 1.45rem);
    white-space: nowrap;
  }

  .nsd-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nsd-page-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(86vw, 320px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(38, 50, 56, 0.12);
    border-radius: var(--nsd-radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(38, 50, 56, 0.14);
    overflow: visible;
  }

  .nsd-page-nav a {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: var(--nsd-radius);
    font-size: 0.95rem;
    justify-content: flex-start;
  }

  .nsd-page-header.is-nav-open .nsd-page-nav {
    display: flex;
  }

  .nsd-container {
    width: min(100% - 24px, 1120px);
  }

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

  .nsd-hero {
    padding: 52px 0 56px;
  }

  .nsd-hero h1 {
    font-size: clamp(1.58rem, 7.2vw, 2.4rem);
  }

  .nsd-hero__copy,
  .nsd-section__lead,
  .nsd-card p,
  .nsd-step p {
    line-height: 1.85;
  }

  .nsd-hero__image,
  .nsd-hero__placeholder {
    min-height: 280px;
    height: 72vw;
  }

  .nsd-hero__note {
    position: static;
    max-width: none;
    margin-top: 14px;
  }

  .nsd-card,
  .nsd-step,
  .nsd-contact__box {
    padding: 22px;
  }

  .nsd-step {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nsd-company dl {
    grid-template-columns: 1fr;
  }

  .nsd-company dt {
    padding-bottom: 8px;
    border-bottom: 0;
  }

  .nsd-company dd {
    padding-top: 8px;
  }
}
