/*
  Этот файл обязателен для шаблонов Битрикс.
  Основные стили подключаются из /assets/index-*.css (собранный файл из прототипа).
*/

/* Typography parity with reference: Roboto body + Rubik headings */
body {
  font-family: Roboto, sans-serif;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Rubik, sans-serif;
  font-weight: 500;
  letter-spacing: -0.025em;
}

/* Home page refinement to match reference layout and rhythm */
.hero-banner {
  position: relative;
  min-height: 420px;
}

.hero-banner .container {
  width: 100%;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero-banner h1 {
  letter-spacing: -0.02em;
}

.hero-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-banner__content {
  position: relative;
  z-index: 1;
}

.home-quick-card {
  height: 100%;
}

.home-quick-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  box-shadow: 0 10px 24px rgba(9, 24, 17, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-quick-card__link:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(9, 24, 17, 0.14);
}

.home-quick-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.home-quick-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.home-lucide-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.home-quick-card__title {
  margin: 0;
  font-family: Rubik, sans-serif;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.home-quick-card__subtitle {
  margin: 4px 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.home-quick-card__text {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
  line-height: 1.55;
}

.home-quick-card__action {
  margin-top: auto;
  padding-top: 16px;
  color: hsl(var(--destructive));
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.home-status-card {
  border-radius: 0.7rem;
}

.home-status__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.home-status-card__icon {
  color: currentColor;
}

.home-status-card__icon-svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  display: block;
}

@media (max-width: 768px) {
  .hero-banner .container {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .home-quick-card__link {
    padding: 20px;
  }
}

@media (min-width: 640px) {
  .home-status__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hero-banner {
    min-height: 520px;
  }

  .home-status__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Admin page border hotfix: keep header styling untouched */
.admin-info-page .border,
.admin-info-page .border-b {
  border-color: hsl(0 0% 88%) !important;
}

.admin-info-page .border {
  border-width: 1px !important;
}

.admin-info-page .border-b {
  border-bottom-width: 1px !important;
}

.admin-info-page .admin-phone-reveal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  padding: 0.15rem 0.625rem;
  background: hsl(var(--card));
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}

.admin-info-page .admin-phone-reveal__value {
  filter: blur(4px);
  user-select: none;
  transition: filter 0.2s ease;
}

.admin-info-page .admin-phone-reveal__hint {
  color: hsl(var(--primary));
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.admin-info-page .admin-phone-reveal.is-open .admin-phone-reveal__value {
  filter: none;
  user-select: text;
}

.snt-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.snt-footer__col {
  min-width: 0;
}

@media (min-width: 768px) {
  .snt-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 2.5rem;
    row-gap: 2rem;
    align-items: start;
  }
}

.news-detail-back-link {
  color: hsl(var(--destructive)) !important;
}

.news-detail-back-link:hover {
  color: hsl(var(--destructive)) !important;
}

.polls-page .poll-card__header {
  padding: 1.5rem;
}

.polls-page .poll-card__content {
  padding: 0 1.5rem 1.5rem;
}

.polls-page .poll-card__footer {
  padding: 1rem 1.5rem;
}

@media (max-width: 640px) {
  .polls-page .poll-card__header {
    padding: 1rem;
  }

  .polls-page .poll-card__content {
    padding: 0 1rem 1rem;
  }

  .polls-page .poll-card__footer {
    padding: 0.875rem 1rem;
  }
}
