:root {
  color-scheme: dark;
  --bg: #ffffff;
  --text: #111111;
  --muted: #4f4f4f;
  --border: #e3e3e3;
  --accent: #1f2937;
  --hero-photo: none;
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Klavika", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input,
textarea,
a {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 40px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: none;
  background: transparent;
}


.brand-labels {
  display: flex;
  flex-direction: column;
}

.brand-name {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}


.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
}

.hero,
.page-hero {
  position: relative;
  max-width: 1100px;
  width: min(100%, 1100px);
  margin: 72px auto 0;
  padding: clamp(48px, 5vw, 84px) 36px 64px;
  min-height: 420px;
  display: grid;
  gap: 24px;
  color: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  background-color: #111111;
  background-image: linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28)), var(--hero-photo);
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 80px rgba(17, 17, 17, 0.08);
}

.hero > *,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.hero,
.page-hero {
  border: none;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 3.2vw, 4rem);
  max-width: 100%;
  line-height: 1.05;
  color: #ffffff;
}

.intro,
.section-text {
  margin: 24px 0 0;
  max-width: 640px;
  color: rgba(255,255,255,0.86);
  font-size: 1.05rem;
}

.section-block {
  max-width: 860px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.section-block:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.values-grid,
.partners-list {
  display: grid;
  gap: 32px;
  margin-top: 72px;
}

.values-grid article,
.partners-list article,
.section-block article {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.values-grid article h2,
.partners-list article h2 {
  margin: 0 0 16px;
  font-size: 1.15rem;
}

.section-block.split {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  display: grid;
}

.section-block.split article {
  border: none;
  padding: 0;
}

.partners-list article {
  background: #fafafa;
}

.site-footer {
  margin-top: auto;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  color: #1e1e1f;
  font-size: 0.95rem;
  display: grid;
  gap: 18px;
}

.site-footer::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.site-footer p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 640px;
}

.contact-form label {
  display: grid;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #ffffff;
}

.contact-form button {
  width: fit-content;
  border: 1px solid var(--text);
  background: var(--text);
  color: #ffffff;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 900px) {
  .page-shell {
    padding: 48px 64px;
  }
}
