/* Заглавная страница МИБС Казань */
:root {
  --home-bg: #f6f8fb;
  --home-surface: #ffffff;
  --home-text: #1c2430;
  --home-muted: #5f6b7a;
  --home-accent: #1a6fb5;
  --home-border: #e4eaf0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--home-text);
  background: var(--home-bg);
  min-height: 100vh;
}

.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-top {
  position: relative;
  padding: 20px 24px 0;
}

.home-admin-link {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(95, 107, 122, 0.35);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.home-admin-link:hover {
  color: rgba(95, 107, 122, 0.75);
  background: rgba(0, 0, 0, 0.04);
}

.home-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  text-align: center;
}

.home-logo {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--home-accent);
  margin-bottom: 16px;
}

.home-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
}

.home-subtitle {
  margin: 0 auto 28px;
  max-width: 560px;
  color: var(--home-muted);
  font-size: 1.05rem;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: left;
}

.home-card {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.home-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.home-card p {
  margin: 0;
  font-size: 14px;
  color: var(--home-muted);
}

.home-cta {
  margin-top: 8px;
  font-size: 14px;
  color: var(--home-muted);
}

.home-cta strong {
  color: var(--home-accent);
  font-weight: 600;
}

.home-addresses {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 24px;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 14px;
  font-size: 14px;
  color: var(--home-muted);
  text-align: left;
}

.home-addresses strong {
  display: block;
  color: var(--home-text);
  margin-bottom: 8px;
  font-size: 15px;
}

.home-footer {
  margin-top: auto;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(95, 107, 122, 0.7);
  border-top: 1px solid var(--home-border);
  background: var(--home-surface);
}

@media (max-width: 480px) {
  .home-hero {
    padding-top: 32px;
    padding-bottom: 100px;
  }

  .home-admin-link {
    top: 10px;
    right: 12px;
  }
}
