*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-1: #eff4ff;
  --bg-2: #f9fcff;
  --card: #ffffff;
  --text: #152741;
  --muted: #55647f;
  --accent: #1a5ed4;
  --accent-dark: #1548a6;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(21, 52, 103, 0.08);
}

body {
  margin: 0;
  font-family: "Segoe UI", "Arial", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -15%;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      28deg,
      transparent,
      transparent 46px,
      rgba(26, 94, 212, 0.08) 46px,
      rgba(26, 94, 212, 0.08) 48px
    ),
    repeating-linear-gradient(
      -30deg,
      transparent,
      transparent 34px,
      rgba(0, 172, 130, 0.08) 34px,
      rgba(0, 172, 130, 0.08) 36px
    );
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49%, rgba(19, 49, 95, 0.06) 49%, rgba(19, 49, 95, 0.06) 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 255, 255, 0.26) 49%, rgba(255, 255, 255, 0.26) 51%, transparent 51%);
  mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 78%);
  opacity: 0.25;
}

.page {
  width: min(1080px, 94vw);
  margin: 24px auto;
  display: grid;
  gap: 16px;
  position: relative;
}

.card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid #d7e1f2;
  box-shadow: var(--shadow);
  padding: 24px;
  animation: fade-up 0.45s ease both;
}

.hero {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: center;
}

.hero__logo-wrap {
  display: inline-flex;
}

.logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #dce8f8;
}

.hero__text h1 {
  margin: 0;
  line-height: 1.22;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.muted {
  margin-top: 8px;
  color: var(--muted);
  max-width: 60ch;
}

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

.btn {
  border: none;
  border-radius: 12px;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  padding: 10px 14px;
  font-weight: 600;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-dark);
}

.btn-outline {
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid #c9dcff;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: #f1f6ff;
}

.wifi-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.qr-block {
  margin-top: 16px;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 10px 28px 0;
  position: relative;
}

.qr-block + .qr-block::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 8px;
  left: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(21, 52, 103, 0.14) 18%,
    rgba(21, 52, 103, 0.14) 82%,
    transparent
  );
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid #d6e3f5;
  box-shadow: 0 10px 24px rgba(21, 52, 103, 0.08);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-icon--wifi {
  color: #1763d1;
  background: linear-gradient(135deg, #eaf2ff, #ffffff);
}

.service-icon--wifi svg {
  stroke-width: 2.4;
}

.service-icon--review {
  color: #d49a00;
  background: linear-gradient(135deg, #fff4cf, #ffffff);
}

.service-icon--review svg {
  fill: rgba(212, 154, 0, 0.18);
}

.service-icon--site {
  color: #28496f;
  background: linear-gradient(135deg, #edf7ff, #ffffff);
}

.qr-block:hover .service-icon {
  transform: translateY(-2px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 28px rgba(21, 52, 103, 0.12);
}

.qr-block img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #dce8ff;
  border-radius: 12px;
  padding: 8px;
}

.qr-link {
  display: inline-flex;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.qr-block p {
  text-align: center;
  color: var(--muted);
  margin: 8px 0 0;
}

.footer {
  text-align: center;
  color: #455d7a;
}

button {
  font-family: inherit;
}

.wifi-credentials {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dce8ff;
  border-radius: 14px;
  background: #f8fbff;
}

.wifi-credentials--card {
  width: min(260px, 100%);
  margin-top: 12px;
}

.wifi-credentials div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.wifi-credentials span {
  color: var(--muted);
}

@keyframes fade-up {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__logo-wrap {
    margin: 0 auto;
  }

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

  .qr-block {
    padding: 22px 0;
    margin-top: 0;
  }

  .qr-block + .qr-block::before {
    top: 0;
    bottom: auto;
    left: 8%;
    right: 8%;
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(21, 52, 103, 0.16) 18%,
      rgba(21, 52, 103, 0.16) 82%,
      transparent
    );
  }

  .btn,
  .btn-outline {
    width: 100%;
  }
}
