:root {
  color-scheme: light;
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  color: #162341;
  background: #fff;
  font-synthesis: none;
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(ellipse at 48% -18%, #ffd9b7 0, transparent 51%),
    radial-gradient(ellipse at 112% 43%, #ffd9d9 0, transparent 43%),
    radial-gradient(ellipse at -13% 69%, #d6e6ff 0, transparent 48%),
    linear-gradient(180deg, #fff8f3 0, #fff 62%, #f8fbff 100%);
}

.site-header, .main {
  width: min(1100px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  min-height: 91px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgb(36 62 111 / 14%);
}

.brand, .access-label { display: flex; align-items: center; }
.brand { gap: 12px; }

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(155deg, #fff 25%, #fff1e5);
  box-shadow: inset 0 0 0 1px #fff, 0 5px 14px rgb(87 55 42 / 13%);
}

.brand-mark img { display: block; }

.brand-name {
  font-size: 17px;
  font-weight: 780;
  letter-spacing: .095em;
  white-space: nowrap;
}

.brand-name span { color: #b54500; }

.access-label {
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgb(42 71 119 / 19%);
  border-radius: 999px;
  background: rgb(255 255 255 / 77%);
  color: #314b72;
  font-size: 12px;
  font-weight: 610;
  white-space: nowrap;
}

.access-label svg { width: 15px; height: 15px; color: #2458b3; }

.main { padding-block: clamp(58px, 8.6vw, 112px) 72px; }
.intro { margin-bottom: clamp(32px, 5vw, 59px); text-align: center; }

.intro h1 {
  margin: 0;
  font-size: clamp(42px, 6.2vw, 79px);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.intro h1 span {
  color: #244ea6;
  background: linear-gradient(100deg, #b91f34 4%, #b34306 48%, #235ac7 94%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro p {
  margin: 18px 0 0;
  color: #42536f;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.5;
}

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

.system {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  padding: 26px;
  min-height: 251px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgb(var(--tone) / 30%);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 16% -12%, rgb(var(--tone) / 13%), transparent 68%),
    linear-gradient(153deg, var(--surface), #fff 77%);
  box-shadow: inset 0 1px 0 #fff, 0 16px 38px rgb(49 61 91 / 11%);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.system--pos {
  --tone: 206 95 18;
  --surface: #fff1e2;
  --icon-top: #ffdfae;
  --icon-bottom: #ffa454;
  --ink: #612907;
  --action: #923600;
}

.system--pharmacy {
  --tone: 60 110 216;
  --surface: #edf4ff;
  --icon-top: #d5e7ff;
  --icon-bottom: #8ab6ff;
  --ink: #13376f;
  --action: #204a9b;
}

.system--spa {
  --tone: 205 65 84;
  --surface: #fff0f0;
  --icon-top: #ffdbd3;
  --icon-bottom: #ff969d;
  --ink: #731d33;
  --action: #a31d35;
}

.system::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -102px;
  right: -60px;
  width: 239px;
  height: 205px;
  border-radius: 50%;
  transform: rotate(-26deg);
  border: 1px solid rgb(var(--tone) / 23%);
  box-shadow: 0 0 0 19px rgb(var(--tone) / 6%), 0 0 0 39px rgb(var(--tone) / 4%);
  background: linear-gradient(180deg, transparent 30%, rgb(var(--tone) / 7%));
  pointer-events: none;
}

.system-icon {
  display: grid;
  place-items: center;
  width: 63px;
  height: 63px;
  border: 1px solid rgb(255 255 255 / 43%);
  border-radius: 19px;
  background: linear-gradient(155deg, var(--icon-top), var(--icon-bottom));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 75%), 0 8px 20px rgb(var(--tone) / 18%);
  color: var(--ink);
}

.system-icon svg { width: 32px; height: 32px; }

.system-info h2 {
  margin: 0 0 6px;
  font-size: clamp(23px, 2.7vw, 29px);
  font-weight: 730;
  line-height: 1.14;
  letter-spacing: -.037em;
}

.system-info p {
  margin: 0;
  color: #42536f;
  font-size: 14px;
  line-height: 1.45;
}

.system-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
  padding-top: 13px;
  border-top: 1px solid rgb(var(--tone) / 22%);
  font-size: 14px;
  font-weight: 680;
  color: var(--action);
}

.arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgb(var(--tone) / 25%);
  border-radius: 50%;
  background: rgb(var(--tone) / 10%);
}

.arrow svg { width: 18px; height: 18px; }

@media (hover: hover) {
  .system:hover {
    transform: translateY(-4px);
    border-color: rgb(var(--tone) / 70%);
    box-shadow: inset 0 1px 0 #fff, 0 20px 42px rgb(var(--tone) / 16%);
  }
}

.system:focus-visible { outline: 3px solid #2658bf; outline-offset: 5px; }

@media (max-width: 760px) {
  .site-header, .main { width: min(500px, calc(100% - 36px)); }
  .site-header { min-height: 73px; }
  .main { padding-block: 48px 44px; }
  .intro { margin-bottom: 31px; }
  .intro h1 { font-size: clamp(39px, 8.7vw, 54px); }
  .intro p { margin-top: 13px; }
  .systems { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  .system {
    min-height: 0;
    grid-template-columns: 49px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 8px 15px;
    padding: 17px 16px;
    border-radius: 19px;
  }

  .system-icon {
    width: 49px;
    height: 49px;
    grid-row: span 2;
    border-radius: 15px;
  }

  .system-icon svg { width: 26px; height: 26px; }
  .system-info h2 { margin-bottom: 3px; font-size: 23px; }
  .system-info p { font-size: 13px; }
  .system-action { padding-top: 0; border-top: 0; font-size: 13px; }
  .arrow { width: 29px; height: 29px; }
  .arrow svg { width: 15px; height: 15px; }
}

@media (max-width: 360px) {
  .site-header { gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .brand-mark img { width: 28px; height: 28px; }
  .brand-name { font-size: 15px; }
  .access-label { gap: 5px; padding-inline: 9px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .system { transition: none; }
  .system:hover { transform: none; }
}

@media (forced-colors: active) {
  .intro h1 span { -webkit-text-fill-color: CanvasText; }
  .system { border-color: LinkText; }
  .system:focus-visible { outline-color: Highlight; }
}
