
:root {
  --navy: #061b33;
  --navy-2: #0b2a4a;
  --blue: #1264b3;
  --blue-2: #0d58a6;
  --light-blue: #eaf3ff;
  --text: #0a1d33;
  --muted: #5f6d7a;
  --white: #ffffff;
  --light: #f6f8fb;
  --border: #dfe7ef;
  --shadow: 0 18px 45px rgba(6, 27, 51, 0.12);
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

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

.header {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
}

.logo-link img {
  width: 265px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 650;
  color: var(--navy);
}

.nav a {
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  background: var(--blue);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 7px;
  font-weight: 800;
  border: 2px solid transparent;
  transition: 0.18s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(18,100,179,0.22);
}

.btn-primary:hover {
  background: var(--blue-2);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--white);
}

.btn-outline:hover {
  background: var(--light-blue);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(18,100,179,0.08), transparent 28%),
    linear-gradient(90deg, #ffffff 0%, #ffffff 52%, #eef5fb 52%, #f8fbff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, transparent 0%, transparent 47%, rgba(18,100,179,0.95) 47.2%, rgba(18,100,179,0.95) 47.7%, transparent 48%),
    radial-gradient(circle, rgba(10,29,51,0.12) 1px, transparent 2px);
  background-size: 100% 100%, 115px 115px;
  opacity: 0.45;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 590px;
  align-items: center;
  gap: 44px;
  padding: 54px 0;
}

.hero-content {
  padding: 30px 0;
}

.hero-kicker {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--navy);
}

h1 span {
  color: var(--blue);
}

.hero-subline {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 18px;
}

.hero-text {
  color: #22364c;
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual {
  position: relative;
  min-height: 430px;
  border-radius: 0 0 0 80px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(6,27,51,0.12), rgba(18,100,179,0.05)),
    url("assets/macnetsystem-logo.jpeg");
  background-size: cover;
  background-position: center;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(6,27,51,0.05));
}

.device-illustration {
  position: absolute;
  z-index: 2;
  left: 34px;
  right: 34px;
  bottom: 34px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 36px rgba(6,27,51,0.18);
}

.device-illustration strong {
  display: block;
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-top: 16px;
}

.status-item {
  background: var(--light-blue);
  color: var(--blue);
  border-radius: 12px;
  padding: 12px;
  font-weight: 850;
  text-align: center;
  font-size: 0.92rem;
}

.section {
  padding: 78px 0;
}

.section-light {
  background: var(--light);
}

.section-head {
  text-align: center;
  max-width: 790px;
  margin: 0 auto 42px;
}

.kicker {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.86rem;
  margin-bottom: 8px;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--navy);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(6,27,51,0.07);
  transition: 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.icon {
  font-size: 3rem;
  color: var(--blue);
  margin-bottom: 16px;
}

.card h3 {
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--muted);
}

.card-line {
  width: 84px;
  height: 3px;
  background: var(--blue);
  margin: 22px auto 0;
  border-radius: 999px;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.benefits {
  display: grid;
  gap: 18px;
}

.benefit {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(18,100,179,0.22);
}

.benefit h3 {
  color: var(--navy);
  margin-bottom: 3px;
}

.benefit p {
  color: var(--muted);
}

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

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 14px;
  border-right: 1px solid var(--border);
}

.step:last-child {
  border-right: 0;
}

.step-icon {
  font-size: 2.5rem;
  color: var(--blue);
}

.step-number {
  display: inline-grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.step h3 {
  color: var(--navy);
  margin-bottom: 4px;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-section {
  background: linear-gradient(135deg, var(--navy), #03111f);
  color: var(--white);
  padding: 72px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.contact-section h2 {
  color: var(--white);
}

.contact-section p {
  color: #d6e3f2;
  margin-bottom: 24px;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-row {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 18px;
}

.contact-row small {
  display: block;
  color: #9cc8ef;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  font-size: 0.75rem;
  margin-bottom: 5px;
}

.footer {
  background: #03111f;
  color: var(--white);
  padding: 44px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 42px;
  align-items: start;
  margin-bottom: 34px;
}

.footer-logo img {
  width: 250px;
  filter: brightness(1.2);
  background: var(--white);
  border-radius: 8px;
  padding: 8px;
}

.footer h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer a,
.footer p {
  color: #d6e3f2;
}

.footer a:hover {
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  color: #b9c7d8;
  text-align: center;
  font-size: 0.9rem;
}

.legal-page {
  background: var(--light);
}

.legal-hero {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  padding: 70px 0;
}

.legal-hero h1 {
  color: var(--white);
  text-transform: none;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.legal-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px;
  margin: -34px auto 70px;
}

.legal-content h2 {
  font-size: 1.55rem;
  margin-top: 32px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: #263b52;
  margin-bottom: 13px;
}

.legal-content ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .header-inner {
    justify-content: center;
  }

  .hero {
    background: var(--white);
  }

  .hero-inner,
  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-visual {
    min-height: 330px;
  }

  .cards,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .logo-link img {
    width: 230px;
  }

  .hero-inner {
    padding: 36px 0;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .cards,
  .steps,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .legal-content {
    padding: 28px;
  }
}
