:root {
  color-scheme: light;
  --ink: #10251f;
  --muted: #5f6f68;
  --line: rgba(16, 37, 31, 0.13);
  --paper: #f5f6ef;
  --green: #1d7458;
  --lime: #c9f36d;
  --sun: #ff9e45;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Avenir Next", "Century Gothic", sans-serif;
  background:
    radial-gradient(circle at 78% 12%, rgba(201, 243, 109, 0.46), transparent 27rem),
    linear-gradient(145deg, #eef4e9 0%, #f7f6ef 52%, #edf0e7 100%);
}

a { color: inherit; }

.atmosphere, .atmosphere > * { position: fixed; pointer-events: none; }
.atmosphere { inset: 0; overflow: hidden; }
.orb { width: 32rem; height: 32rem; border-radius: 50%; filter: blur(3rem); opacity: 0.25; }
.orb-a { top: -17rem; right: -9rem; background: var(--lime); }
.orb-b { bottom: -20rem; left: -12rem; background: var(--sun); opacity: 0.13; }
.grid {
  inset: 0;
  opacity: 0.32;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.shell {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.brand { display: flex; align-items: center; gap: 14px; }
.mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px 7px 16px 7px;
  color: white;
  background: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(16, 37, 31, 0.18);
}
.brand p, .brand strong { display: block; margin: 0; }
.brand p { color: var(--muted); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.brand strong { margin-top: 2px; font-size: 17px; letter-spacing: -0.02em; }
.live {
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  backdrop-filter: blur(16px);
}
.live i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #2fbd77; box-shadow: 0 0 0 5px rgba(47, 189, 119, 0.12); }

.intro { align-self: end; padding: 11vh 0 46px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
h1 { max-width: 830px; margin: 0; font-family: "Iowan Old Style", "Baskerville", serif; font-size: clamp(48px, 8vw, 104px); font-weight: 600; line-height: 0.88; letter-spacing: -0.065em; }
.lead { max-width: 610px; margin: 28px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.55; }

.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-self: start; }
.app-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 22px 60px rgba(33, 55, 47, 0.09);
  transform: translateY(16px);
  opacity: 0;
  animation: rise 700ms cubic-bezier(.2,.75,.2,1) forwards;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.app-card:nth-child(2) { animation-delay: 100ms; }
.app-card:hover { transform: translateY(-5px); box-shadow: 0 30px 70px rgba(33, 55, 47, 0.16); }
.app-card:focus-visible { outline: 4px solid rgba(29, 116, 88, 0.22); outline-offset: 4px; }
.cards { background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(232,245,222,.92)); }
.sklad { color: #f4fff8; background: linear-gradient(145deg, #173e33, #0b2821 72%); border-color: rgba(255,255,255,.12); }
.index { font-size: 12px; font-weight: 800; letter-spacing: .16em; opacity: .55; }
.app-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 20px; background: rgba(255,255,255,.72); }
.sklad .app-icon { background: rgba(201,243,109,.12); }
.app-icon svg { width: 34px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.app-copy { align-self: end; grid-column: 1 / 3; }
.app-copy small, .app-copy strong, .app-copy span { display: block; }
.app-copy small { margin-bottom: 9px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sklad .app-copy small { color: var(--lime); }
.app-copy strong { font-family: "Iowan Old Style", "Baskerville", serif; font-size: 42px; font-weight: 600; letter-spacing: -.045em; }
.app-copy span { max-width: 390px; margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.sklad .app-copy span { color: rgba(244,255,248,.66); }
.arrow { grid-column: 3; grid-row: 1 / 3; align-self: end; font-size: 32px; transition: transform 220ms ease; }
.app-card:hover .arrow { transform: translate(4px, -4px); }

footer { padding-top: 32px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

@keyframes rise { to { transform: translateY(0); opacity: 1; } }

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 560px); }
  .brand p { display: none; }
  .live { padding: 8px 10px; font-size: 10px; }
  .intro { padding: 10vh 2px 32px; }
  h1 { font-size: clamp(45px, 15vw, 72px); }
  .lead { margin-top: 20px; font-size: 16px; }
  .apps { grid-template-columns: 1fr; gap: 12px; }
  .app-card { min-height: 190px; padding: 22px; border-radius: 24px; gap: 18px; }
  .app-icon { width: 48px; height: 48px; border-radius: 16px; }
  .app-icon svg { width: 28px; }
  .app-copy strong { font-size: 34px; }
  .arrow { font-size: 26px; }
  footer { gap: 12px; font-size: 8px; }
  footer span:last-child { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .app-card { animation: none; opacity: 1; transform: none; transition: none; }
}
