:root {
  --navy: #071428;
  --navy-deep: #050f1e;
  --navy-soft: #0c1f3a;
  --cyan: #2ee6d6;
  --cyan-dark: #12c4b8;
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --white: #ffffff;
  --gray: #f4f7fb;
  --border: #e8eef5;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --header-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
}

.container-site {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.accent {
  color: var(--cyan);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 20, 40, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand img,
.brand svg {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 12px 22px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gradient {
  color: var(--white);
  background: linear-gradient(90deg, var(--blue) 0%, #4f7dff 45%, var(--cyan-dark) 100%);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.28);
}

.btn-gradient:hover {
  color: var(--white);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.38);
}

.btn-outline {
  color: var(--white);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  border-radius: 10px;
  color: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 75% 20%, rgba(59, 130, 246, 0.22), transparent 60%),
    radial-gradient(ellipse 45% 40% at 15% 80%, rgba(46, 230, 214, 0.12), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 72px 0 40px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 70% 40%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--cyan);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 18px;
}

.hero-lead {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(46, 230, 214, 0.12);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.stats-bar {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 28px 0 36px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(46, 230, 214, 0.12);
  color: var(--cyan);
  flex-shrink: 0;
}

.stat-item strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
}

.stat-item span {
  color: var(--text-light);
  font-size: 0.88rem;
}

.section {
  padding: 88px 0;
}

.section-gray {
  background: var(--gray);
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  margin: 8px 0 0;
}

.section-head h2 span {
  color: var(--blue);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e8f1ff;
  color: var(--blue);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.08rem;
  margin: 0 0 8px;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.project-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.project-card .body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 12px;
  flex: 1;
}

.project-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.tech-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
  text-align: center;
  padding: 12px 8px;
}

.tech-item svg {
  width: 36px;
  height: 36px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-copy .section-head {
  text-align: left;
  margin-bottom: 18px;
}

.about-copy p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-points {
  display: grid;
  gap: 16px;
}

.about-point {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.about-point .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e8f1ff;
  color: var(--blue);
}

.about-point h4 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.about-point p {
  margin: 0;
  font-size: 0.9rem;
}

.about-visual img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-copy .section-head {
  text-align: left;
  margin-bottom: 22px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-list .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #e8f1ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-list a,
.contact-list span {
  color: var(--text);
  font-weight: 600;
}

.contact-list small {
  display: block;
  color: var(--text-muted);
  font-weight: 400;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  outline: none;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-alert {
  display: none;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.form-alert.success {
  display: block;
  background: #ecfdf5;
  color: #047857;
}

.form-alert.error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
}

.btn-block {
  width: 100%;
  margin-top: 4px;
}

.site-footer {
  background: var(--navy-deep);
  color: #cbd5e1;
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
}

.site-footer h5 {
  color: var(--white);
  margin: 0 0 16px;
  font-size: 1rem;
}

.footer-brand p {
  margin: 12px 0 18px;
  max-width: 280px;
  font-size: 0.92rem;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: grid;
  place-items: center;
}

.socials a:hover {
  background: var(--blue);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.footer-contact a,
.footer-contact span {
  color: #cbd5e1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.heart {
  color: #f43f5e;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  display: none;
  place-items: center;
  background: linear-gradient(90deg, var(--blue), var(--cyan-dark));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
  cursor: pointer;
  z-index: 20;
}

.back-top.show {
  display: grid;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual img { animation: none; }
}

@media (max-width: 1100px) {
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-bar {
    grid-template-columns: 1fr auto auto;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-bar.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--navy);
    padding: 12px 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-bar.open .nav-cta {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .stats-grid,
  .cards-3,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .stats-grid,
  .cards-3,
  .cards-4,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 64px 0;
  }

  .contact-form {
    padding: 20px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
