:root {
  --color-primary: #153027;
  --color-primary-hover: #0d251e;
  --color-background: #ffffff;
  --color-block-background: #f2f2f2;
  --color-border: #d2d2d2;
  --color-text: #000000;
  --color-info: #416eaf;
  --color-warning: #fab434;
  --color-error: #bf3824;
  --focus-ring: rgba(65, 110, 175, 0.3);

  color: var(--color-text);
  background: var(--color-background);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--color-background);
}

button,
select {
  font: inherit;
}

.page-shell {
  width: 100%;
  padding: 16px;
}

.article-page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.back-link:hover {
  text-decoration-thickness: 2px;
}

.support-card {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 20px;
  background: var(--color-block-background);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.support-header {
  margin-bottom: 24px;
}

h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(1.6rem, 7vw, 2.25rem);
  line-height: 1.15;
}

.article-card {
  padding: 24px 20px;
  background: var(--color-block-background);
  border-radius: 12px;
}

.article-card h1 {
  max-width: none;
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 6vw, 2rem);
}

.article-content {
  font-size: 1rem;
  line-height: 1.65;
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content > :last-child {
  margin-bottom: 0;
}

.similar-articles {
  margin-top: 32px;
}

.similar-articles h2 {
  color: var(--color-primary);
  font-size: 1.25rem;
}

.similar-articles ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.similar-articles a {
  display: block;
  padding: 14px 16px;
  color: var(--color-primary);
  font-weight: 700;
  background: var(--color-block-background);
  border-radius: 8px;
  text-decoration: none;
}

.similar-articles a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.introduction {
  max-width: 48ch;
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.55;
}

.support-form {
  display: grid;
  gap: 20px;
}

.form-field {
  display: grid;
  gap: 8px;
}

label {
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
}

select {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 14px;
  color: var(--color-text);
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
}

select:disabled {
  color: #555555;
  background: var(--color-border);
  cursor: not-allowed;
  opacity: 0.75;
}

select:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

button {
  min-height: 48px;
  margin-top: 4px;
  padding: 12px 20px;
  color: var(--color-background);
  font-weight: 800;
  background: var(--color-primary);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: var(--color-primary-hover);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.status-message {
  min-height: 1.4em;
  margin: 0 0 20px;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.4;
}

.support-form .status-message {
  margin: -8px 0 0;
  text-align: center;
}

.status-message:empty {
  display: none;
}

.status-message--loading,
.status-message--success {
  color: var(--color-primary);
}

.status-message--warning {
  color: #765200;
}

.status-message--error {
  color: var(--color-error);
}

@media (min-width: 640px) {
  .page-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 40px 24px;
  }

  .support-card {
    padding: 40px;
    box-shadow: 0 16px 48px rgba(21, 48, 39, 0.1);
  }

  .article-page {
    padding: 48px 24px;
  }

  .article-card {
    padding: 40px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  button,
  select {
    transition: background-color 160ms ease, border-color 160ms ease,
      box-shadow 160ms ease, opacity 160ms ease;
  }
}
