:root {
  --blue: #168bd2;
  --blue-dark: #0875b8;
  --bg: #eef3f7;
  --panel: #ffffff;
  --line: #dce5ec;
  --text: #222f3a;
  --muted: #7a8a96;
  --green: #36ad4a;
  --green-dark: #27883a;
  --orange: #ff9e2b;
  --shadow: 0 1px 2px rgba(35, 53, 66, 0.08);
  font-family: Arial, "Helvetica Neue", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.wrap {
  width: min(1120px, calc(100% - 24px));
  margin-inline: auto;
}

.top {
  background: var(--blue);
  box-shadow: 0 2px 5px rgba(26, 62, 84, 0.18);
}

.top__bar {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 78px;
}

.logo {
  display: inline-flex;
  align-items: center;
  width: 172px;
  height: 44px;
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo:hover,
.menu a:hover,
.login-link:hover {
  color: #fff;
  text-decoration: none;
}

.menu {
  display: flex;
  gap: 2px;
}

.menu a,
.login-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 4px;
  color: #e8f6ff;
  font-weight: 700;
}

.menu a[aria-current="page"],
.menu a:hover,
.login-link:hover {
  background: var(--blue-dark);
}

.search {
  display: flex;
  justify-self: end;
  width: min(360px, 100%);
  height: 38px;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 4px 0 0 4px;
  padding: 0 12px;
  outline: 0;
}

.search button,
.comment-form button {
  border: 0;
  border-radius: 0 4px 4px 0;
  padding: 0 16px;
  background: #f4f7fa;
  color: #38505f;
  font-weight: 700;
  cursor: pointer;
}

.search-empty {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  padding: 20px 0 28px;
}

.content,
.side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.box h1,
.box h2,
.box h3 {
  margin: 0 0 14px;
  color: #1f2d36;
  line-height: 1.22;
}

.box h1 {
  font-size: 28px;
}

.box h2 {
  font-size: 20px;
}

.box h3 {
  font-size: 17px;
}

.box p {
  margin: 0 0 14px;
}

.intro p,
.article p {
  max-width: 74ch;
}

.box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.box-head h2 {
  margin: 0;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.tiles--list {
  grid-template-columns: 1fr;
}

.tile {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 12px;
}

.tile h2 {
  margin: 0 0 5px;
  font-size: 17px;
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.app-ico {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  box-shadow: 0 8px 16px rgba(32, 52, 68, 0.15);
}

.side .box {
  padding: 14px;
}

.recommend {
  display: grid;
  gap: 10px;
}

.recommend a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-weight: 700;
}

.recommend .app-ico,
.ad-dot {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 13px;
}

.ad-dot {
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}

.last-comments {
  display: grid;
  gap: 13px;
}

.last-comments article {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.last-comments b,
.last-comments a,
.last-comments time {
  display: block;
}

.last-comments p {
  margin: 4px 0;
  color: #4e606c;
}

.last-comments time,
.meta-list span,
.comment time {
  color: var(--muted);
  font-size: 12px;
}

.crumbs {
  color: var(--muted);
  font-size: 13px;
}

.entry h1 {
  margin-bottom: 16px;
}

.entry-top {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.entry-icon .app-ico {
  width: 150px;
  height: 150px;
  border-radius: 24px;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  border-bottom: 1px solid var(--line);
}

.meta-list span {
  min-width: 86px;
}

.download-small,
.download-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.16);
}

.download-small {
  margin-top: 16px;
  padding: 0 34px;
}

.download-big {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  font-size: 16px;
}

.download-small:hover,
.download-big:hover {
  background: var(--green-dark);
  color: #fff;
  text-decoration: none;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shot {
  min-height: 220px;
  border-radius: 4px;
  margin: 0;
  overflow: hidden;
  background: #dbe8f1;
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 10 / 14;
  object-fit: cover;
}

.shot figcaption {
  display: grid;
  gap: 4px;
  padding: 10px 12px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
}

.shot span {
  color: var(--muted);
  font-size: 12px;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: -4px -4px 16px;
  padding: 0 4px;
}

.tabs button {
  border: 0;
  border-radius: 4px 4px 0 0;
  padding: 10px 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.tabs .is-active {
  background: var(--blue);
  color: #fff;
}

.help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.help-links a {
  color: #596d7b;
  font-weight: 700;
}

.install__image {
  float: left;
  margin: 0 16px 8px 0;
}

.install ul {
  padding-left: 20px;
}

.ad-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 14px 0 0;
  border: 1px solid #c9e8ce;
  border-radius: 4px;
  padding: 12px;
  background: #f1fbf3;
}

.comments {
  display: grid;
  gap: 14px;
}

.comment {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #dbeaf3;
  color: var(--blue-dark);
  font-weight: 900;
}

.comment b,
.comment time {
  display: block;
}

.comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.comment-form h3,
.comment-form textarea,
.comment-form button {
  grid-column: 1 / -1;
}

.comment-form input,
.comment-form textarea,
.login-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  font: inherit;
}

.comment-form textarea {
  min-height: 110px;
  resize: vertical;
}

.comment-form button {
  justify-self: start;
  min-height: 38px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
}

.footer {
  background: #dfe8ef;
  border-top: 1px solid #ced9e1;
  color: #647481;
}

.footer__inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.logo--foot {
  width: 142px;
  height: 36px;
}

.footer p {
  margin: 0;
}

.footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: end;
}

.login-box {
  display: none;
  position: fixed;
  z-index: 40;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, calc(100% - 24px));
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px;
  color: #50616d;
  box-shadow: 0 18px 42px rgba(34, 47, 58, 0.22);
}

.login-box:target {
  display: block;
}

.login-box label {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.login-box button {
  border: 0;
  border-radius: 4px;
  padding: 10px 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

@media (max-width: 900px) {
  .top__bar,
  .page,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .search {
    justify-self: stretch;
    width: 100%;
  }

  .side {
    order: 2;
  }

  .footer nav {
    justify-content: start;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 18px, 1120px);
  }

  .top__bar {
    gap: 10px;
    padding: 10px 0;
  }

  .menu {
    flex-wrap: wrap;
  }

  .tiles,
  .shots,
  .meta-list,
  .comment-form,
  .entry-top {
    grid-template-columns: 1fr;
  }

  .entry-icon .app-ico {
    width: 118px;
    height: 118px;
  }

  .box {
    padding: 14px;
  }
}
