* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  color: #f4f8ff;
  background: #030b18;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1320px, calc(100% - 44px));
  margin: 0 auto;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 190, 255, 0.16), transparent 24%),
    radial-gradient(circle at 82% 34%, rgba(34, 108, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #04101d 0%, #030a16 60%, #020814 100%);
}

.glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(120px);
  z-index: -4;
  pointer-events: none;
}

.glow-1 {
  width: 360px;
  height: 360px;
  top: 110px;
  left: -100px;
  background: rgba(0, 180, 255, 0.18);
}

.glow-2 {
  width: 420px;
  height: 420px;
  top: 180px;
  right: -120px;
  background: rgba(24, 104, 255, 0.20);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 12, 25, 0.56);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(102, 196, 255, 0.08);
}

.nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #9bf3ff 0%, #55d9ff 36%, #1e6dff 100%);
  box-shadow:
    0 0 10px rgba(96, 219, 255, 0.9),
    0 0 22px rgba(30, 109, 255, 0.55);
}

.brand-text {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.menu {
  display: flex;
  gap: 34px;
  color: #d4e4ff;
}

.menu a {
  opacity: 0.9;
  transition: 0.2s ease;
}

.menu a:hover {
  opacity: 1;
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 16px;
  border: 1px solid rgba(111, 220, 255, 0.26);
  background: linear-gradient(180deg, rgba(17, 164, 255, 0.95), rgba(19, 91, 255, 0.9));
  color: #fff;
  font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(109, 220, 255, 0.08) inset,
    0 0 26px rgba(22, 132, 255, 0.24);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(109, 220, 255, 0.12) inset,
    0 0 34px rgba(22, 132, 255, 0.34);
}

.btn-header {
  min-height: 50px;
  padding: 0 22px;
  background: rgba(6, 20, 39, 0.72);
}

.btn-ghost {
  background: rgba(6, 20, 39, 0.72);
}

.btn-big {
  min-width: 320px;
}

.hero {
  padding: 44px 0 36px;
  position: relative;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(620px, 1fr);
  gap: 44px;
  align-items: center;
  min-height: 620px;
}

.hero-left {
  padding-top: 10px;
  position: relative;
  z-index: 3;
}

.hero-line {
  width: 300px;
  height: 3px;
  border-radius: 999px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, rgba(113, 223, 255, 0.95), rgba(113, 223, 255, 0));
  box-shadow: 0 0 22px rgba(113, 223, 255, 0.5);
}

.hero h1 {
  font-size: clamp(38px, 3.1vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 410px;
}

.hero-text {
  margin-top: 20px;
  max-width: 360px;
  font-size: clamp(16px, 1.1vw, 21px);
  line-height: 1.6;
  color: #d7e7ff;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-dashboard-card {
  width: min(100%, 940px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(109, 220, 255, 0.08) inset,
    0 20px 80px rgba(0, 0, 0, 0.42),
    0 0 80px rgba(18, 109, 255, 0.12);
}

.hero-dashboard-card img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
}

.section {
  padding: 86px 0;
  position: relative;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head h2 {
  font-size: clamp(34px, 3vw, 56px);
  line-height: 1.08;
  margin-bottom: 12px;
}

.section-head p {
  color: #c7d8f2;
  font-size: 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card,
.case-card,
.about-card,
.contact-form,
.popup {
  background: rgba(6, 17, 34, 0.72);
  border: 1px solid rgba(108, 208, 255, 0.10);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(77, 166, 255, 0.04) inset,
    0 12px 44px rgba(0, 0, 0, 0.28);
}

.service-card {
  padding: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 208, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(77, 166, 255, 0.08) inset,
    0 20px 56px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(19, 103, 255, 0.10);
}

.service-image {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
}

.service-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.service-card p {
  color: #c7d8f2;
  font-size: 15px;
  line-height: 1.55;
  min-height: 72px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(111, 220, 255, 0.24);
  background: linear-gradient(180deg, rgba(14, 163, 255, 0.84), rgba(19, 93, 255, 0.84));
  box-shadow: 0 0 18px rgba(22, 132, 255, 0.22);
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover .mini-btn {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(22, 132, 255, 0.30);
}

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

.about-card {
  padding: 26px;
}

.about-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.about-card p {
  color: #c7d8f2;
  font-size: 16px;
  line-height: 1.6;
}

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

.case-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.case-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 208, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(77, 166, 255, 0.08) inset,
    0 20px 56px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(19, 103, 255, 0.10);
}

.case-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.case-card:hover img {
  transform: scale(1.04);
}

.case-content {
  padding: 20px;
}

.case-content h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.case-content p {
  color: #c7d8f2;
  font-size: 15px;
  line-height: 1.55;
}

.cases-cta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: start;
}

.contact-text h2 {
  font-size: 42px;
  line-height: 1.08;
  margin-bottom: 12px;
}

.contact-text p {
  color: #c7d8f2;
  font-size: 18px;
}

.contact-form,
.lead-form {
  padding: 28px;
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea,
.lead-form input {
  width: 100%;
  min-height: 56px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(108, 208, 255, 0.12);
  background: rgba(255,255,255,0.03);
  color: #fff;
  outline: none;
}

.contact-form textarea {
  min-height: 148px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.lead-form input::placeholder {
  color: #8fa8c6;
}

.form-note,
.form-message {
  font-size: 14px;
  color: #94aac6;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(2, 9, 18, 0.76);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup-overlay.active {
  display: flex;
}

.popup {
  width: min(560px, 100%);
  padding: 32px;
  position: relative;
}

.popup h3 {
  font-size: 30px;
  margin-bottom: 10px;
}

.popup p {
  color: #c7d8f2;
  margin-bottom: 16px;
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 24px;
  }

  .hero-left {
    max-width: 560px;
  }

  .hero-text {
    max-width: 420px;
  }

  .hero-right {
    justify-content: flex-start;
  }

  .hero-dashboard-card {
    width: 100%;
    max-width: 940px;
  }

  .services-grid,
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1320px, calc(100% - 24px));
  }

  .menu {
    display: none;
  }

  .nav {
    min-height: 72px;
    gap: 12px;
  }

  .brand-mark {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
  }

  .brand-text {
    font-size: 15px;
  }

  .btn-header {
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hero {
    padding: 24px 0 18px;
  }

  .hero-layout {
    gap: 18px;
  }

  .hero-line {
    width: 170px;
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.08;
    max-width: 100%;
  }

  .hero-text {
    margin-top: 14px;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-dashboard-card {
    border-radius: 18px;
  }

  .hero-dashboard-card img {
    aspect-ratio: 1 / 1;
  }

  .section {
    padding: 72px 0;
  }

  .section-head h2,
  .contact-text h2 {
    font-size: 32px;
  }

  .section-head p,
  .contact-text p,
  .about-card p {
    font-size: 16px;
  }

  .services-grid,
  .about-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .btn,
  .btn-big,
  .btn-ghost {
    width: 100%;
    min-width: 0;
  }

  .service-card p,
  .case-content p {
    min-height: auto;
  }
}
