:root {
  --bg: #f7fafc;
  --bg-soft: #ffffff;
  --ink: #1d2b3a;
  --ink-soft: #5b6b7c;
  --line: #e3ebf2;
  --brand: #4a7fb5;
  --brand-soft: #eaf2fa;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  background-image: radial-gradient(900px 500px at 12% -10%, var(--brand-soft), transparent 60%),
    radial-gradient(700px 420px at 92% 0%, #fdeef2, transparent 60%);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 24px 40px;
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
}

.brand {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.lang a,
.lang .active {
  display: inline-flex;
  align-items: center;
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
}

.lang a {
  opacity: 0.4;
  filter: grayscale(0.7);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.lang a:hover {
  opacity: 1;
  filter: none;
}

main {
  flex: 1;
}

.hero {
  padding: 64px 0 48px;
  max-width: 42rem;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.lead {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.contact {
  margin-top: 8px;
}

.contact h2 {
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.contact p {
  margin-top: 6px;
  color: var(--ink-soft);
}

.mails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
  list-style: none;
}

.mails a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.mails a:hover {
  background: var(--brand);
  color: #fff;
}

.foot {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes glow {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  animation: glow 0.9s ease-out both;
}

.brand,
.lang,
h1,
.lead,
.contact h2,
.contact p,
.mails,
.foot {
  animation: rise 0.7s cubic-bezier(0.22, 0.68, 0.32, 1) both;
}

.brand {
  animation-delay: 0.05s;
}

.lang {
  animation-delay: 0.15s;
}

h1 {
  animation-delay: 0.28s;
}

.lead {
  animation-delay: 0.42s;
}

.contact h2 {
  animation-delay: 0.56s;
}

.contact p {
  animation-delay: 0.66s;
}

.mails {
  animation-delay: 0.76s;
}

.foot {
  animation-delay: 0.9s;
}

@media (prefers-reduced-motion: reduce) {
  body,
  .brand,
  .lang,
  h1,
  .lead,
  .contact h2,
  .contact p,
  .mails,
  .foot {
    animation: none;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 20px 18px 32px;
  }

  .hero {
    padding: 44px 0 34px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1620;
    --bg-soft: #16202c;
    --ink: #eaf1f8;
    --ink-soft: #9aabbd;
    --line: #24313f;
    --brand: #8ab6e3;
    --brand-soft: #1c2c3d;
  }

  body {
    background-image: radial-gradient(900px 500px at 12% -10%, #17293b, transparent 60%),
      radial-gradient(700px 420px at 92% 0%, #2a1d26, transparent 60%);
  }

  .lang .active,
  .mails a:hover {
    color: #0f1620;
  }
}
