:root {
  --blue: #0000ff;
  --navy: #000080;
  --text: #333333;
  --muted: #666666;
  --line: #eeeeee;
  --topbar: #f8f8f8;
  --footer: #f1f1f1;
  --white: #ffffff;
  --max: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  background: var(--white);
}

a {
  color: #1d4ed8;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 10;
  padding: 8px 12px;
  background: #ffffff;
  color: #111111;
}

.skip-link:focus {
  left: 8px;
}

.top-bar {
  background: var(--topbar);
  border-bottom: 1px solid var(--line);
}

.top-bar__inner {
  max-width: var(--max);
  min-height: 55px;
  margin: 0 auto;
  padding: 7px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.language-links,
.main-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.language-links img {
  display: block;
  width: 35px;
  height: auto;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 5px;
  color: #555555;
  font-size: 13px;
  line-height: 1;
}

.main-nav a[aria-current="page"] {
  color: #000000;
  font-weight: 700;
}

.parallax {
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.parallax--deep {
  background-image: linear-gradient(rgba(0, 0, 35, .12), rgba(0, 0, 35, .12)), url("../images/wishes_universe.jpg");
}

.parallax--wide {
  background-image: linear-gradient(rgba(0, 0, 35, .18), rgba(0, 0, 35, .18)), url("../images/wishes-universe1.jpg");
}

.parallax--page {
  background-image: linear-gradient(rgba(0, 0, 35, .28), rgba(0, 0, 35, .28)), url("../images/wishes-universe.jpg");
}

.hero {
  min-height: 515px;
  padding: 30px 18px;
  display: grid;
  place-items: center;
}

.hero__device {
  display: block;
  width: min(500px, 92vw);
  height: auto;
  margin: 0 auto;
}

.hero__arrow {
  width: 40px;
  height: auto;
  display: block;
  margin: 10px auto 0;
  transform: translateX(200px);
}

.section {
  padding: 26px 18px;
}

.section--tight {
  padding-top: 18px;
  padding-bottom: 18px;
}

.section--spacious {
  padding-top: 48px;
  padding-bottom: 54px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.narrow {
  max-width: 650px;
}

.center {
  text-align: center;
}

.lead {
  font-size: 18px;
  color: var(--navy);
}

.blue {
  color: var(--blue);
}

h1,
h2,
h3 {
  margin: 0 0 18px;
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  color: var(--blue);
  font-size: clamp(1.55rem, 1.3rem + 1vw, 2.1rem);
  text-align: center;
  letter-spacing: 0;
}

h2 {
  color: var(--navy);
  font-size: 1.35rem;
}

p {
  margin: 0 0 18px;
}

.screens {
  min-height: 330px;
  padding: 34px 18px;
  display: flex;
  align-items: center;
}

.screens__row {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
  flex-wrap: wrap;
}

.screens__row img {
  width: 130px;
  height: auto;
}

.wish-list {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.wish-list__item {
  margin: 0 0 12px;
}

.wish-list__icon {
  display: block;
  width: 50px;
  height: auto;
  margin: 4px auto 16px;
}

.cta {
  padding: 42px 18px 54px;
  color: #ffffff;
  text-align: center;
}

.cta strong {
  display: block;
  max-width: 760px;
  margin: 0 auto 16px;
  font-size: 21px;
  line-height: 1.35;
}

.cta--heading {
  padding-block: 28px;
}

.cta--heading strong {
  margin-bottom: 0;
  text-transform: uppercase;
}

.app-store {
  display: inline-block;
}

.app-store img {
  display: block;
  width: 168px;
  height: auto;
}

.page-hero {
  min-height: 190px;
  padding: 48px 18px;
  display: grid;
  place-items: center;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.6rem);
  text-transform: uppercase;
}

.content-page {
  padding: 36px 18px 46px;
}

.content-page .narrow {
  max-width: 720px;
}

.faq-item {
  margin-bottom: 26px;
}

.faq-item h2 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.06rem;
}

.author-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.author-card img {
  width: 130px;
  height: auto;
  border-radius: 2px;
}

.recommendations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: 22px;
}

.recommendations ul {
  margin: 0;
  padding-left: 20px;
}

.recommendations--single {
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 620px;
  margin-inline: auto;
}

.contact-stack__image {
  display: block;
  width: 200px;
  height: auto;
  margin: 0 auto 20px;
  border-radius: 2px;
}

.contact-email {
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 700;
}

.about-page__intro,
.about-page h2,
.about-page h3 {
  color: var(--navy);
  text-align: left;
}

.legal {
  max-width: 760px;
}

.legal h2 {
  margin-top: 30px;
}

.legal ul {
  margin: 0 0 18px;
}

.site-footer {
  min-height: 86px;
  background: #ffffff;
}

.footer-bottom {
  padding: 18px;
  background: var(--footer);
  border-top: 1px solid #e2e2e2;
  text-align: center;
  color: #555555;
  font-size: 13px;
}

.footer-bottom a {
  margin: 0 8px;
  color: #555555;
}

.scroll-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  width: 42px;
  height: 42px;
  border: 1px solid #dedede;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
  text-decoration: none;
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-top:hover,
.scroll-top:focus {
  background: #f5f5f5;
  text-decoration: none;
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .top-bar__inner {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  .language-links,
  .main-nav {
    justify-content: center;
  }

  .hero {
    min-height: 430px;
  }

  .hero__arrow {
    transform: none;
  }

  .parallax {
    background-attachment: scroll;
  }

  .screens__row {
    gap: 18px;
  }

  .screens__row img {
    width: min(130px, 38vw);
  }

  .author-card,
  .recommendations {
    grid-template-columns: 1fr;
  }

  .author-card {
    text-align: center;
  }

  .author-card img {
    margin: 0 auto;
  }
}

@media (max-width: 479px) {
  .top-bar__inner {
    padding-inline: 12px;
    gap: 10px;
  }

  .main-nav {
    gap: 4px 8px;
  }

  .main-nav a {
    font-size: 13px;
  }

  .section,
  .content-page {
    padding-left: 14px;
    padding-right: 14px;
  }
}
