:root {
  font-family: Cardo, Georgia, "Times New Roman", serif;
  color: #292929;
  background: #fff;
  font-size: 17px;
  line-height: 1.5;
}

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

.toys-shell {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10px 40px 65px;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 22px 0;
  margin-bottom: 35px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.15;
}

h1 {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.15;
  color: #000;
}

nav {
  display: flex;
  gap: 16px;
  margin-left: auto;
  font-size: 15px;
}

a {
  color: #0b5394;
  text-decoration: none;
}

header a,
header a:visited {
  color: #000;
  border-bottom: 2px solid transparent;
}

header a:hover,
header a:focus-visible {
  color: #000;
  border-bottom-color: red;
}

a:focus-visible {
  outline: 2px solid #3d85c6;
  outline-offset: 5px;
  border-radius: 2px;
}

.toy-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toy {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 10px 0;
}

.toy img {
  display: block;
  width: 88px;
  height: 88px;
}

.toy h2 {
  margin: 0 0 4px;
  font: 17px/1.4 "Open Sans", Arial, sans-serif;
}

.toy p {
  margin: 0;
  color: #555;
}

.toy h2::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 0.5em;
  border-radius: 50%;
  background: red;
  vertical-align: middle;
  opacity: 0;
}

.toy:hover h2::after,
.toy:focus-visible h2::after {
  opacity: 1;
}

@media (max-width: 760px) {
  .toys-shell {
    width: min(100% - 28px, 700px);
    padding: 8px 0 45px;
  }

  header { margin-bottom: 20px; }
}

@media (max-width: 600px) {
  .toy {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
  }

  .toy img {
    width: 72px;
    height: 72px;
  }

  .toy p { font-size: 16px; }
}
