*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  background-color: #0a0a0a;
  color: #c7c2bc;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  max-width: 100%;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  max-width: 100%;
}

:root {
  --color-black: #0a0a0a;
  --color-charcoal: #121212;
  --color-graphite: #1c1c1c;
  --color-asphalt: #262626;
  --color-gray: #8f8a84;
  --color-light-gray: #c7c2bc;
  --color-white: #f5f5f5;
  --color-accent: #ff5a1f;

  --font-primary: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.75rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --max-width: 1200px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;
}

body {
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-white);
  word-break: break-word;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

p {
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

strong {
  color: var(--color-white);
}

a:hover {
  color: var(--color-accent);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-2xl);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

.flex {
  display: flex;
  gap: var(--space-md);
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.flex-between {
  align-items: center;
  justify-content: space-between;
}

.stack > * + * {
  margin-top: var(--space-md);
}

.header {
  background: var(--color-black);
  border-bottom: 1px solid var(--color-graphite);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
}

.nav {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.logo {
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 1.2rem;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.4rem;
  background: var(--color-accent);
  color: #000;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  text-align: center;
  flex-wrap: wrap;
}

.button:hover {
  background: #ff6a33;
}

.button-outline {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.card {
  background: var(--color-charcoal);
  border: 1px solid var(--color-graphite);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.card img {
  border-radius: var(--radius-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  width: 100%;
}

input,
textarea,
select {
  background: var(--color-graphite);
  border: 1px solid var(--color-asphalt);
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  width: 100%;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 1px solid var(--color-accent);
}

.footer {
  background: var(--color-black);
  border-top: 1px solid var(--color-graphite);
  padding: var(--space-xl) 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer small {
  color: var(--color-gray);
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-gray);
}

.max-w-text {
  max-width: 65ch;
}

.wrap {
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  .burger {
    display: flex;
  }

  .logo {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: var(--space-xl);
  }

  .button {
    width: 100%;
  }
}