:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #111817;
  --muted: #5f6b67;
  --line: #dfe5df;
  --accent: #2864ff;
  --accent-soft: #e8efff;
  --radius: 8px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 24, 23, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(17, 24, 23, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

.site-header,
main,
.site-footer {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 18px;
  font-weight: 820;
  letter-spacing: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.header-actions a:hover,
.header-actions a:focus-visible {
  color: var(--ink);
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.language-switch button {
  min-width: 44px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
}

.language-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--surface);
}

.hero {
  min-height: calc(100svh - 250px);
  padding: 96px 0 72px;
  display: grid;
  align-content: center;
  border-top: 1px solid var(--line);
}

.status,
.section-label {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(46px, 9vw, 104px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(21px, 3vw, 32px);
  line-height: 1.25;
}

.hero p:not(.status),
.info-grid p,
.contact p {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  overflow-wrap: break-word;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 0 64px;
}

.info-grid article,
.contact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.info-grid article {
  min-height: 220px;
  padding: 26px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: end;
  padding: 30px;
}

.contact-links {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.email-link {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 820;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.email-link:hover,
.email-link:focus-visible {
  color: var(--accent);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.socials span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px dashed #b9c3bd;
  border-radius: var(--radius);
  padding: 8px 11px;
  color: var(--muted);
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 820;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header {
    min-height: 92px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  .header-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero {
    min-height: auto;
    padding: 70px 0 56px;
  }

  h1 {
    max-width: 10.5ch;
    font-size: clamp(36px, 10vw, 46px);
    line-height: 1.02;
  }

  .hero p:not(.status),
  .info-grid p,
  .contact p {
    max-width: 34ch;
  }

  .info-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 24px;
  }

  .site-footer {
    min-height: 110px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
}
