:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: #d9e2ef;
  --brand: #1570ef;
  --brand-dark: #0b3a8f;
  --ok: #16a34a;
}

* {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
}

a {
  color: var(--brand);
}

.page {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.hero {
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-dark);
  font-weight: 700;
}

.mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.summary {
  max-width: 760px;
  font-size: 18px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.nav a,
.email {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  font-weight: 600;
}

.lang-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  color: var(--text);
}

.lang-picker select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  font-weight: 600;
  padding: 0 28px 0 4px;
  min-height: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4.5l3.5 3.5 3.5-3.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 6px center;
}

.lang-picker select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

.section {
  margin-top: 20px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

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

.item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
}

.item strong {
  display: block;
  margin-bottom: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf3;
  color: var(--ok);
  font-weight: 700;
}

.language-block {
  display: none;
  gap: 14px;
}

.language-block.is-active {
  display: grid;
}

.no-js .language-block {
  display: grid;
}

.no-js .language-block + .language-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer {
  padding: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 24px, 960px);
    padding: 28px 0;
  }

  .hero,
  .section {
    padding: 22px;
    border-radius: 14px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
