:root {
  --font: "Montserrat", sans-serif;
  --text: #35415b;
  --heading: #0f131f;
  --btn-bg: #000;
  --btn-bg-hover: #35415b;
  --box-bg: #e3e3e3;
  --page-bg: #fff;
  --content-width: 900px;
  --col-gap: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: color .3s, background .3s, opacity .3s; }

.icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

/* Full-height, vertically centered section */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 40px 2.5rem;
}

.container {
  width: 100%;
  max-width: calc(var(--content-width) + var(--col-gap) * 2);
  margin: 0 auto;
  padding: 0 var(--col-gap);
}

.logo img { margin: 0 auto; width: 155px; }

.sep--lg { height: 4.2rem; }
.sep--sm { height: 1rem; }

/* Gray box with two site cards */
.sites {
  display: flex;
  background: var(--box-bg);
  padding: 50px 0;
}

.site {
  flex: 1 1 50%;
  min-width: 0;
  padding: 0 var(--col-gap);
}

.site__img img { width: 100%; }

.site__title {
  margin: 0;
  text-align: center;
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--heading);
}

.site__title a {
  display: inline-flex;
  align-items: center;
  gap: .5em;
}

.site__title a:hover { color: var(--btn-bg-hover); }

/* Buttons */
.buttons {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 1em 2em;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  background: var(--btn-bg);
}

.btn:hover { background: var(--btn-bg-hover); color: #fff; }

/* Scroll-to-top */
.to-top {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 99;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  background: rgba(51, 51, 51, .5);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity .3s, transform .3s, visibility .3s, background .3s;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: rgba(51, 51, 51, .8); }

/* Mobile */
@media (max-width: 600px) {
  .page { padding: 40px 0; }
  .container { padding: 0 16px; }
  .sites { flex-direction: column; gap: 2rem; padding: 30px 0; }
  .site { padding: 0 16px; }
  .site__title { font-size: 1.25rem; }
  .sep--lg { height: 2.5rem; }
  .buttons { flex-direction: column; align-items: center; }
}
