:root {
  color-scheme: light dark;
  --bg-light: #ffffff;
  --bg-dark: #020617;
  --text-light: #0f172a;
  --text-dark: #f8fafc;
  --toggle-bg-light: rgba(15, 23, 42, 0.05);
  --toggle-border-light: rgba(15, 23, 42, 0.12);
  --toggle-bg-dark: rgba(248, 250, 252, 0.12);
  --toggle-border-dark: rgba(248, 250, 252, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Roboto', system-ui, sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: background-color 0.25s ease, color 0.25s ease;
}

body[data-theme='dark'] {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}


.site {
  width: min(960px, 100%);
  text-align: center;
}

.logotype {
  width: min(65vw, 520px);
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0px 12px 24px rgba(15, 23, 42, 0.2));
  transition: filter 0.25s ease;
}

body[data-theme='dark'] .logotype {
  filter: drop-shadow(0px 18px 36px rgba(0, 0, 0, 0.55));
}

.logotype-dark {
  display: none;
}

body[data-theme='dark'] .logotype-dark {
  display: block;
}

body[data-theme='dark'] .logotype-light {
  display: none;
}

.contact {
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #000;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}

body[data-theme='dark'] .contact {
  color: #fff;
  opacity: 0.85;
}

.contact:hover,
.contact:focus-visible {
  text-decoration: underline;
}

.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body[data-theme='dark'] .theme-toggle {
  background: transparent;
  border-color: transparent;
  color: var(--text-dark);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--toggle-bg-light);
  border-color: var(--toggle-border-light);
}

body[data-theme='dark'] .theme-toggle:hover,
body[data-theme='dark'] .theme-toggle:focus-visible {
  background: var(--toggle-bg-dark);
  border-color: var(--toggle-border-dark);
}

.theme-toggle .icon {
  width: 16px;
  height: 16px;
  display: block;
}

.theme-toggle .moon {
  display: none;
}

body[data-theme='dark'] .theme-toggle .sun {
  display: none;
}

body[data-theme='dark'] .theme-toggle .moon {
  display: block;
}
