/* === Базовая типографика и фон === */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, -system-ui, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: var(--font-size-base);
}

.app-shell {
  min-height: 100vh;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
}

.app-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-lg) var(--space-2xl);
  box-sizing: border-box;
}

.section {
  margin-bottom: var(--space-xl);
}

.section:last-child {
  margin-bottom: 0;
}

.page-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--font-size-xl);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.text-muted {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  box-sizing: border-box;
}

.card-header {
  margin-bottom: var(--space-md);
}

main {
  flex: 1 1 auto;
  padding: 1rem var(--page-horizontal-padding) var(--bottom-nav-offset);
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-nav-offset) + constant(safe-area-inset-bottom));
  padding-bottom: calc(var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px));
}

.home-banner {
  margin: 0 0 1.5rem;
}

.home-banner__link {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--color-surface);
  border: 1px solid var(--color-neutral-weak);
  box-shadow: none;
}

.home-banner__image {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 480px) {
  main {
    padding: 1rem calc(var(--page-horizontal-padding) * 0.75) var(--bottom-nav-offset);
    padding-bottom: calc(var(--bottom-nav-offset) + constant(safe-area-inset-bottom));
    padding-bottom: calc(var(--bottom-nav-offset) + env(safe-area-inset-bottom, 0px));
  }

  .home-banner {
    margin-bottom: 1.25rem;
  }

  .home-banner__link {
    border-radius: 12px;
  }
}
