:root {
  --hotline-ink: #18212b;
  --hotline-muted: #66717d;
  --hotline-border: rgba(24, 33, 43, 0.12);
  --hotline-accent: #c92835;
  --hotline-accent-dark: #9f1e2a;
  --hotline-surface: #f5f7f8;
}

html {
  font-size: 16px;
}

body {
  min-width: 320px;
  color: var(--hotline-ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(201, 40, 53, 0.08), transparent 28rem),
    var(--hotline-surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  position: relative;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--hotline-border);
  box-shadow: 0 0.25rem 1.25rem rgba(24, 33, 43, 0.04);
}

.site-brand {
  min-height: 44px;
  color: var(--hotline-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.site-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.site-nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--hotline-ink) !important;
  font-size: 1rem;
  font-weight: 600;
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  color: var(--hotline-accent) !important;
}

main.container {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.form-control,
.form-select,
.btn {
  min-height: 44px;
}

.form-control:focus,
.form-select:focus,
.btn:focus-visible,
.navbar-toggler:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(201, 40, 53, 0.3);
  outline-offset: 2px;
  box-shadow: none;
}

.question-form {
  max-width: 960px;
  margin: 0 auto;
}

.question-kicker {
  margin-bottom: 0.5rem;
  color: #ffd8dc;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.question-lead {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.55;
}

.question-form-panel {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1rem;
  background: rgba(15, 20, 25, 0.42);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.question-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.question-form .submit-button {
  width: 100%;
}

.bg-video-wrap {
  position: relative;
  min-height: min(680px, calc(100vh - 100px));
  overflow: hidden;
  border-radius: 12px;
  background: #29313a url("../video/poster.png") center / cover no-repeat;
  box-shadow: 0 1.5rem 3rem rgba(24, 33, 43, 0.14);
}

.bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
  pointer-events: none;
}

.bg-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(110deg, rgba(10, 15, 20, 0.86) 0%, rgba(10, 15, 20, 0.55) 52%, rgba(10, 15, 20, 0.3) 100%),
    linear-gradient(0deg, rgba(10, 15, 20, 0.18), transparent 48%);
}

.bg-video-content {
  position: relative;
  z-index: 2;
}

.question-form .form-control,
.question-form .form-select {
  border-radius: 0.65rem;
}

.question-form .form-label {
  margin-bottom: 0.45rem;
  font-weight: 650;
}

.question-form .btn-danger {
  border-color: var(--hotline-accent);
  background: var(--hotline-accent);
  box-shadow: 0 0.5rem 1rem rgba(201, 40, 53, 0.2);
  font-weight: 700;
}

.question-form .btn-danger:hover,
.question-form .btn-danger:active {
  border-color: var(--hotline-accent-dark);
  background: var(--hotline-accent-dark);
}

.need-fill,
.bg-custom {
  border: 1px solid rgba(24, 33, 43, 0.42) !important;
  background-color: rgba(248, 250, 251, 0.96) !important;
}

.need-fill:focus,
.bg-custom:focus {
  border-color: var(--hotline-accent) !important;
  box-shadow: 0 0 0 0.2rem rgba(201, 40, 53, 0.22) !important;
}

.answers-page h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
}

.answer-card {
  height: 100%;
  border: 1px solid var(--hotline-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(24, 33, 43, 0.04);
}

.answer-card-meta,
.answer-card-section {
  min-width: 0;
}

.answer-card-label {
  color: var(--hotline-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.answer-card-value {
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.answer-card-meta .answer-card-label:not(:first-child) {
  margin-top: 1rem;
}

.answer-card-date,
.answer-card-footer {
  margin-top: 1rem;
  color: var(--hotline-muted);
  font-size: 0.875rem;
}

.answer-card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.answer-card-answer {
  padding-top: 1rem;
  border-top: 1px solid var(--hotline-border);
}

.muted {
  color: var(--hotline-muted);
}

@media (min-width: 576px) {
  main.container {
    padding-top: 1.5rem;
  }

  .question-form .submit-button {
    width: auto;
    min-width: 140px;
  }

  .question-form-panel {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .site-brand {
    font-size: 1.125rem;
  }

  .site-brand img {
    width: 32px;
    height: 32px;
  }

  main.container {
    padding-top: 2rem;
  }
}

@media (min-width: 992px) {
  .answers-list .row {
    --bs-gutter-y: 1rem;
  }

  .answer-card {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(260px, 1.25fr) minmax(300px, 1.6fr);
    gap: 1.5rem;
    align-items: start;
    padding: 1.25rem 1.5rem !important;
  }

  .answer-card-section {
    padding-left: 1.5rem;
    border-left: 1px solid var(--hotline-border);
  }

  .answer-card-answer {
    padding-top: 0;
    border-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-video {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .bg-video {
    display: none;
  }

  .bg-video-wrap {
    min-height: auto;
  }
}
