
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --dm-color-text: #111;
  --dm-color-text-muted: #666;
  --dm-color-text-soft: #444;
  --dm-color-bg: #fff;
  --dm-color-border: #e5e5e5;
  --dm-color-border-strong: #e9e9e9;
  --dm-radius-card: 12px;
  --dm-radius-control: 10px;
  --dm-radius-soft: 8px;
  --dm-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --dm-shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
  --dm-hero-title-size: clamp(32px, 3.8vw, 46px);
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--dm-color-text);
  line-height: 1.6;
  background: var(--dm-color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header,
.site-footer {
  background: var(--dm-color-bg);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 140;
  border-bottom: 1px solid var(--dm-color-border-strong);
  background: var(--dm-color-bg);
}

.site-footer {
  border-top: 1px solid var(--dm-color-border);
  margin-top: 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1200px, calc(100% - 32px));
  min-height: 64px;
  padding: 10px 0;
}

.site-brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-right: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  min-width: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #000;
}

.site-nav a.is-active {
  color: var(--dm-color-text);
  border-bottom-color: var(--dm-color-text);
}

body.admin-bar .site-header {
  top: 32px;
}

body main {
  padding-top: 84px;
}

body.admin-bar main {
  padding-top: 116px;
}

body.home .site-home {
  padding-top: 84px;
}

body.admin-bar.home .site-home {
  padding-top: 116px;
}

.site-footer {
  padding: 20px 0;
}

.site-footer__inner p {
  margin: 0;
  color: var(--dm-color-text-muted);
  font-size: 14px;
  text-align: center;
}

section {
  padding: 56px 0;
}

.page-head {
  padding: 36px 0 20px;
}

.page-head h1 {
  margin: 0;
  max-width: 760px;
  line-height: 1.18;
}

.page-head p {
  margin-top: 12px;
  max-width: 760px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.eyebrow,
.section-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dm-color-text-muted);
  margin-bottom: 12px;
}

.lead {
  font-size: 18px;
  color: var(--dm-color-text-soft);
  max-width: 760px;
}

.page-hero.page-hero {
  padding: 20px 0 56px;
  background: var(--dm-color-bg);
  text-align: left;
}

.page-hero.page-hero > .page-hero__inner.container {
  width: min(1160px, calc(100% - 32px));
}

.page-hero .page-hero__kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dm-color-text-muted);
}

.page-hero .page-hero__title {
  max-width: 100%;
  margin: 0 0 14px;
  font-size: var(--dm-hero-title-size);
  line-height: 1.12;
  letter-spacing: 0;
}

.page-hero .page-hero__lead {
  max-width: 100%;
  margin: 0;
  color: var(--dm-color-text-soft);
  font-size: 17px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  :root {
    --dm-hero-title-size: clamp(30px, 7vw, 36px);
  }

  .page-hero.page-hero {
    padding: 18px 0 42px;
  }

  .page-hero .page-hero__title {
    font-size: var(--dm-hero-title-size);
    line-height: 1.12;
  }
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  background: var(--dm-color-text);
  color: var(--dm-color-bg);
  border: 1px solid var(--dm-color-text);
  border-radius: 6px;
  transition: 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn--ghost {
  background: transparent;
  color: var(--dm-color-text);
}

.not-found-page {
  padding: 34px 0 72px;
}

.not-found-hero .container {
  width: min(960px, calc(100% - 32px));
}

.not-found-card {
  padding: 12px 0 0;
}

.not-found-card h1 {
  margin-bottom: 10px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.12;
}

.not-found-card .lead {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: 17px;
}

.not-found-panel {
  border: 1px solid var(--dm-color-border);
  border-radius: var(--dm-radius-card);
  background: #fbfbfb;
  box-shadow: var(--dm-shadow-soft);
  padding: 22px;
}

.not-found-panel__title {
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--dm-color-text-soft);
}

.not-found-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.not-found-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.not-found-actions .btn.btn--ghost {
  background: #f7f8f9;
  border-color: #e6e6e6;
}

.not-found-actions .btn.btn--ghost:hover {
  background: #f0f3f5;
}

.not-found-actions .btn.is-primary {
  background: #111;
  border-color: #111;
  color: #fff;
}

.not-found-actions .btn.is-primary:hover {
  opacity: 0.92;
}

.not-found-note {
  margin: 14px 0 0;
  color: var(--dm-color-text-soft);
}
