/* Beautymarket24 — platform UI.
   Tokens first, then base, components in page order, responsive variants last. */

/* Tokens */
:root {
  --bg: #fff;
  --bg-subtle: #f6f6f6;
  --bg-hover: #efefef;
  --text: #1b1b1b;
  --text-2: #474747;
  --muted: #6b6b6b;
  --border: #e4e4e4;
  --border-strong: #c8c8c8;
  --brand: #b5462b;
  --brand-hover: #983a22;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 8px;
  --header-h: 113px;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 650;
  letter-spacing: -.01em;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}

.btn-lg {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-secondary {
  border-color: var(--border-strong);
  background: var(--bg);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-2);
}

.link-button {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-button:hover {
  color: var(--brand);
}

.link-danger {
  color: var(--brand);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--text);
}

.brand-mark {
  width: 28px;
  height: 28px;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.brand-name span {
  color: var(--brand);
}

.header-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}

.header-links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header-cta .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.label-short {
  display: none;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius);
}

.menu-toggle:hover {
  background: var(--bg-subtle);
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--text);
  transition: transform .2s;
}

.menu-toggle span:first-child {
  top: 16px;
}

.menu-toggle span:last-child {
  top: 23px;
}

.menu-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  display: grid;
  padding: 4px 24px 12px;
  border-top: 1px solid var(--border);
}

.mobile-menu a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 500;
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

.category-bar-wrap {
  border-top: 1px solid var(--border);
}

.category-bar {
  display: flex;
  gap: 28px;
  height: 48px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-bar button {
  flex-shrink: 0;
  height: 100%;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}

.category-bar button:hover {
  color: var(--text);
  border-bottom-color: var(--border-strong);
}

.category-bar button.is-active {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--text);
}

.category-bar button:focus-visible {
  outline-offset: -2px;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 480px;
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--bg-hover);
}

.hero-media img {
  object-position: 70% 30%;
}

.hero-panel {
  position: relative;
  width: min(600px, calc(100% - 80px));
  margin-left: 40px;
  padding: 32px;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 16px 48px rgb(0 0 0 / 18%);
}

.hero h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.hero-lead {
  text-wrap: balance;
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
}

.hero-search {
  display: flex;
  align-items: center;
  height: 56px;
  margin-top: 22px;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 1px 2px rgb(0 0 0 / 6%);
  transition: border-color .15s, box-shadow .15s;
}

.hero-search:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
}

.hero-field {
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 0;
}

.hero-field:first-child {
  flex: 1;
}

.hero-field .icon {
  margin: 0 2px 0 10px;
  color: var(--muted);
}

.hero-field input,
.hero-field select {
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
}

.hero-field input {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
}

.hero-field input::placeholder {
  color: var(--muted);
}

.hero-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.hero-select {
  border-left: 1px solid var(--border);
}

.hero-select select {
  width: 168px;
  padding: 0 34px 0 14px;
  color: var(--text-2);
  appearance: none;
  -webkit-appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236b6b6b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  cursor: pointer;
}

.hero-submit {
  height: 100%;
  min-height: 0;
  padding: 0 22px;
  font-size: 15px;
}

.popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.popular span {
  flex-basis: 100%;
}

.popular button {
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-2);
  font-size: 13px;
  transition: border-color .15s, color .15s;
}

.popular button:hover {
  border-color: var(--text);
  color: var(--text);
}

/* Browse layout */
.browse {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  padding: 32px 0 64px;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.filter-group + .filter-group {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.filter-title {
  margin-bottom: 10px;
  font-size: 14px;
}

.mode-list {
  display: grid;
  gap: 2px;
}

.mode-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 14px;
  text-align: left;
  transition: background-color .15s;
}

.mode-option:hover {
  background: var(--bg-subtle);
}

.mode-option.is-active {
  background: var(--bg-hover);
  color: var(--text);
  font-weight: 600;
}

.mode-option .count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.filter-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.filter-cta {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  font-size: 14px;
  color: var(--text-2);
}

.filter-cta strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
}

.filter-cta .btn {
  margin-top: 12px;
}

/* Results */
.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.results-head h2 {
  font-size: 24px;
  line-height: 1.25;
}

.results-meta {
  color: var(--muted);
  font-size: 14px;
}

.search-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
}

.search-feedback > * {
  margin-top: 16px;
}

#searchStatus {
  font-size: 14px;
  font-weight: 600;
}

#searchStatus:empty {
  display: none;
}

.category-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.category-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-subtle);
  cursor: pointer;
}

.category-thumb img {
  transition: opacity .15s;
}

.category-thumb:hover img {
  opacity: .9;
}

.category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.category-head h2 {
  font-size: 18px;
  line-height: 1.3;
}

.category-title {
  text-align: left;
}

.category-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.category-count {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.category-desc {
  max-width: 680px;
  margin: 4px 0 14px;
  color: var(--text-2);
  font-size: 14px;
}

.category-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.category-topics button {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2);
  font-size: 13px;
  transition: border-color .15s, color .15s, background-color .15s;
}

.category-topics button:hover {
  border-color: var(--text-2);
  color: var(--text);
  background: var(--bg-subtle);
}

.category-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.category-all .icon {
  width: 16px;
  height: 16px;
  transition: transform .15s;
}

.category-all:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.category-all:hover .icon {
  transform: translateX(2px);
}

.empty-state {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.empty-state h2 {
  font-size: 18px;
}

.empty-state p {
  max-width: 520px;
  margin: 6px 0 20px;
  color: var(--text-2);
  font-size: 14px;
}

/* Provider band */
.provider {
  padding-bottom: 64px;
}

.provider-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}

.provider h2 {
  font-size: 18px;
}

.provider p {
  max-width: 720px;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 14px;
}

/* Help */
.help {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 48px;
  padding: 48px 0 80px;
  border-top: 1px solid var(--border);
}

.help-head h2 {
  font-size: 20px;
}

.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-list summary .icon {
  color: var(--muted);
  transition: transform .2s;
}

.faq-list details[open] summary .icon {
  transform: rotate(180deg);
}

.faq-list details p {
  max-width: 680px;
  padding-bottom: 18px;
  color: var(--text-2);
  font-size: 14px;
}

/* Footer */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-2);
  font-size: 14px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-about p {
  max-width: 300px;
  margin-top: 12px;
}

.footer-column {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
}

.footer-column h3 {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 14px;
}

.footer-column a:hover,
.footer-column button:hover,
.footer-bottom button:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom div {
  display: flex;
  gap: 20px;
}

/* Dialogs */
.site-dialog {
  width: min(600px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 24px 64px rgb(0 0 0 / 22%);
  overflow: auto;
  overscroll-behavior: contain;
}

.site-dialog::backdrop {
  background: rgb(0 0 0 / 45%);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--border);
}

.dialog-close:hover {
  background: var(--bg-subtle);
}

.dialog-media {
  aspect-ratio: 16 / 6;
  background: var(--bg-subtle);
}

.dialog-body {
  padding: 28px 32px 32px;
}

.dialog-meta {
  color: var(--muted);
  font-size: 13px;
}

.dialog-title {
  margin: 2px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.dialog-copy {
  color: var(--text-2);
  font-size: 14px;
}

.dialog-copy + .dialog-copy {
  margin-top: 10px;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 10px;
}

.topic-chip {
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text-2);
  font-size: 14px;
  transition: border-color .15s, background-color .15s, color .15s;
}

.topic-chip:hover {
  border-color: var(--text);
  color: var(--text);
}

.topic-chip.is-selected {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.topic-selection {
  color: var(--muted);
  font-size: 13px;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.dialog-note {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

/* Offer form */
.ad-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}

.form-field select {
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236b6b6b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  cursor: pointer;
}

.form-field select:disabled {
  background-color: var(--bg-subtle);
  color: var(--muted);
  cursor: not-allowed;
}

.form-field textarea {
  min-height: 112px;
  padding: 10px 12px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--text-2);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
  outline: none;
}

.form-field :user-invalid {
  border-color: var(--brand);
}

.form-note {
  color: var(--muted);
  font-size: 13px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.form-status:not(:empty) {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1080px) {
  .header-links {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    display: block;
    min-height: 0;
    margin-top: 16px;
    overflow: visible;
  }

  .hero-media {
    position: relative;
    height: 340px;
    border-radius: 12px;
    overflow: hidden;
  }

  .hero-panel {
    width: auto;
    max-width: 720px;
    margin: -64px auto 0;
    padding: 28px;
  }
}

@media (max-width: 900px) {
  .browse,
  .help {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .browse {
    padding-top: 20px;
  }

  .filters {
    position: static;
  }

  .filter-title,
  .filter-hint,
  .filter-cta {
    display: none;
  }

  .mode-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mode-option {
    flex-shrink: 0;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--border);
  }

  .mode-option.is-active {
    border-color: var(--text);
    background: var(--text);
    color: var(--bg);
  }

  .mode-option.is-active .count {
    color: rgb(255 255 255 / 70%);
  }

  .provider-inner {
    flex-direction: column;
    align-items: start;
    gap: 16px;
  }

  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .header {
    position: static;
  }

  .container {
    width: calc(100% - 32px);
  }

  .header-top {
    gap: 12px;
    height: 60px;
  }

  .hero-media {
    height: 200px;
  }

  .hero-panel {
    max-width: none;
    margin: -40px 8px 0;
    padding: 20px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-search {
    height: 52px;
    margin-top: 16px;
  }

  .hero-select {
    display: none;
  }

  .hero-submit {
    padding: 0 16px;
  }


  .label-full {
    display: none;
  }

  .label-short {
    display: inline;
  }

  .mobile-menu {
    padding-inline: 16px;
  }

  .results-head {
    flex-direction: column;
    gap: 2px;
  }

  .results-head h2 {
    font-size: 22px;
  }

  .category-row {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas:
      'thumb head'
      'thumb desc'
      'topics topics'
      'all all';
    grid-template-rows: auto 1fr;
    gap: 2px 14px;
    padding: 20px 0;
  }

  .category-main {
    display: contents;
  }

  .category-thumb {
    grid-area: thumb;
    align-self: start;
    aspect-ratio: 1;
  }

  .category-head {
    grid-area: head;
    flex-direction: column;
    gap: 0;
  }

  .category-head h2 {
    font-size: 17px;
  }

  .category-desc {
    grid-area: desc;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .category-topics {
    grid-area: topics;
    margin-top: 14px;
  }

  .category-all {
    grid-area: all;
    justify-self: start;
  }

  .provider-inner {
    padding: 20px;
  }

  .provider-inner .btn {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .site-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }

  .dialog-body {
    padding: 22px 18px 24px;
  }

  .dialog-media {
    aspect-ratio: 16 / 7;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .dialog-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
