:root {
  --bg-top: #fbf3ea;
  --bg-bottom: #ead9c6;
  --card: rgba(255, 255, 255, 0.88);
  --line: rgba(125, 74, 33, 0.14);
  --line-strong: #be8757;
  --text: #432311;
  --muted: #7d5d46;
  --accent: #7d4a21;
  --accent-strong: #5b2f0f;
  --shadow: 0 20px 44px rgba(80, 46, 19, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-ui: "Segoe UI", "Yu Gothic UI", "Hiragino Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-ui);
  color: var(--text);
}

body {
  background:
    radial-gradient(circle at top left, rgba(252, 222, 190, 0.78), transparent 34%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

body[data-ready="true"] #app-root,
body[data-mobile="true"] #unsupported-screen {
  display: flex;
}

.unsupported-screen {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: #808080;
  color: #ffffff;
  text-align: center;
  padding: 24px;
  font-size: 1.15rem;
}

.app-shell {
  min-height: 100vh;
  align-items: flex-start;
  justify-content: center;
  padding: 26px 20px 92px;
}

.hub-card {
  width: min(1120px, 100%);
  padding: 12px;
}

.hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.brand-mark {
  width: 76px;
}

.brand-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.app-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.hero-description {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.language-panel {
  display: flex;
  align-items: center;
  justify-self: end;
  min-width: 120px;
}

.language-panel span {
  display: none;
}

.language-panel select {
  width: 100%;
  padding: 8px 30px 8px 12px;
  border: 1px solid #ead4bf;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  box-shadow: 0 4px 10px rgba(91, 47, 15, 0.08);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.app-link-card {
  display: grid;
  gap: 14px;
  min-height: 250px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 246, 238, 0.9)),
    var(--card);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.app-link-card:hover,
.app-link-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px rgba(80, 46, 19, 0.2);
  outline: none;
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 18px rgba(91, 47, 15, 0.14);
}

.card-title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.card-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.card-jump {
  align-self: end;
  font-weight: 700;
  color: var(--accent);
}

.footer-logo-link {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
}

.footer-logo-link img {
  width: 72px;
  height: auto;
  display: block;
}

.footer-logo-link:hover {
  animation: logo-bounce 340ms ease-out;
}

@keyframes logo-bounce {
  0% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-7px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 56px 1fr;
  }

  .language-panel {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 74px;
  }
}
