body {
  margin: 0;
  padding: 0;
  font-family: Georgia, serif;
  background-color: #ffffff;
  color: #111;
}

main {
  box-sizing: border-box;
  width: 100%;
  max-width: 800px;
  height: 100vh;
  margin: 0 auto;
  padding: 8vh 20px 5vh;
  text-align: center;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 36px;
  margin: 0 0 32px;
}

p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 32px;
}

hr {
  width: 60%;
  margin: 24px auto;
  border: none;
  border-top: 1px solid #ddd;
}

@media (min-width: 601px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  html.page-poteci-vii,
  html.page-poteci-vii body {
    overflow: visible;
  }

  main.desktop-fit-home nav:not([style*="text-align:center"]) {
    margin-top: 220px;
  }

  main.desktop-fit-light nav:not([style*="text-align:center"]) {
    margin-top: 190px;
  }

  main.desktop-fit-standard,
  main.desktop-fit-dense {
    padding: 5vh 20px 4vh;
  }

  main.desktop-fit-standard h1,
  main.desktop-fit-dense h1 {
    font-size: 34px;
    margin-bottom: 20px;
  }

  main.desktop-fit-standard p,
  main.desktop-fit-dense p {
    font-size: 17.5px;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  main.desktop-fit-standard hr,
  main.desktop-fit-dense hr {
    margin: 12px auto;
  }

  main.desktop-fit-standard nav:not([style*="text-align:center"]) {
    margin-top: 100px;
  }

  main.desktop-fit-dense nav:not([style*="text-align:center"]) {
    margin-top: 40px;
  }

  main.desktop-fit-standard nav a.back,
  main.desktop-fit-dense nav a.back {
    margin-top: 16px;
  }

  main.page-one {
    padding: 5vh 20px 5vh;
  }

  main.page-one h1 {
    font-size: 34px;
    margin-bottom: 20px;
  }

  main.page-one p {
    font-size: 17.5px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  main.page-one hr {
    margin: 10px auto;
  }
}

/* Navigarea scheletului numerotat pe calculator: <-  N  -> */
nav[style*="text-align:center"] {
  width: 100%;
  margin: auto 0 0;
  text-align: center !important;
  white-space: nowrap;
  flex-shrink: 0;
}

nav[style*="text-align:center"] a {
  display: inline;
  margin: 0;
  font-size: 15px;
  color: #777;
  text-decoration: none;
}

nav[style*="text-align:center"] span {
  display: inline;
  font-size: 15px;
  color: #555;
}

.numbered-nav .nav-dot {
  display: inline-block;
  font-size: 17px;
  line-height: 15px;
  color: #777;
  vertical-align: baseline;
}

/* Linkurile vechi rămân neschimbate structural */
nav:not([style*="text-align:center"]) {
  width: 220px;
  margin-top: 240px;
  margin-left: 10px;
  text-align: left;
}

nav:not([style*="text-align:center"]) a {
  display: block;
  margin: 8px 0;
  font-size: 13px;
  color: #777;
  text-decoration: none;
}

nav a.back {
  margin-top: 24px;
}

a:hover {
  opacity: 0.6;
}

.language-selector {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 1000;
  font-size: 13px;
  color: #aaa;
  white-space: nowrap;
}

.language-selector button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #777;
  font: inherit;
  cursor: pointer;
}

.language-selector button[aria-pressed="true"] {
  color: #333;
}

.home-logo {
  position: fixed;
  left: 28px;
  bottom: 28px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  background: rgba(255,255,255,0.85);
  padding: 6px 10px;
  border-radius: 6px;
  z-index: 1000;
}

.home-logo span {
  margin-left: 8px;
}

footer {
  position: fixed;
  right: 28px;
  bottom: 18px;
  font-size: 13px;
  color: #777;
}

/* Mobilul rămâne deocamdată separat de noua așezare desktop.
   Îl vom regla numai după ce scheletul pentru calculator este fixat. */
@media (max-width: 600px) {
  .language-selector {
    position: static;
    margin: 16px 18px 0;
    text-align: right;
  }

  html,
  body {
    height: auto;
    overflow: auto;
  }

  main {
    display: block;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    padding: 60px 18px 30px;
  }

  h1 {
    font-size: 34px;
    margin-bottom: 28px;
  }

  p {
    font-size: 19px;
    line-height: 1.55;
    margin-bottom: 28px;
  }

  hr {
    width: 65%;
    margin: 22px auto;
  }

  nav[style*="text-align:center"] {
    width: 100%;
    margin: 60px 0 20px;
    text-align: center !important;
  }

  nav[style*="text-align:center"] a,
  nav[style*="text-align:center"] span {
    font-size: 15px;
  }

  nav:not([style*="text-align:center"]) {
    width: 220px;
    margin-top: 140px;
    margin-left: 18px;
    text-align: left;
  }

  nav a.back {
    margin-top: 20px;
  }

  .home-logo {
    position: static;
    display: block;
    margin: 45px 20px 0 20px;
    text-align: left;
    font-size: 13px;
    background: none;
    padding: 0;
  }

  footer {
    position: static;
    margin: 35px 20px 20px auto;
    text-align: right;
    font-size: 13px;
  }
}
