:root {
  --green: #01875f;
  --text: rgba(0, 0, 0, 0.87);
  --muted: #5f6368;
  --line: #dadce0;
  --soft: #f8f9fa;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Roboto, "Google Sans", Arial, "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #fff;
}

body {
  margin: 0;
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(60, 64, 67, 0.24);
}

.topbar__inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 28px;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 500;
  color: #3c4043;
  white-space: nowrap;
}

.brand img,
.profile {
  width: 40px;
  height: 40px;
  border-radius: 7px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
  font-size: 14px;
  color: #3c4043;
}

.tabs a {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
}

.tabs a.active {
  color: var(--green);
  font-weight: 500;
}

.tabs a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 24px;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--green);
  transform: translateX(-50%);
}

.toolbar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3c4043;
  cursor: pointer;
}

.icon-btn svg,
.link-action svg,
.device svg,
.safety-row svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.page {
  width: 100%;
  padding: 48px 72px 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: start;
  gap: 64px;
  min-height: 220px;
  max-width: 1121px;
}

.hero__text {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.hero__mobile-icon {
  display: none;
}

h1 {
  margin: 0 0 18px;
  font-size: 40px;
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: 0;
}

.developer {
  margin: 0 0 4px;
  color: var(--green);
  font-weight: 500;
}

.meta,
.device,
.content-section p,
.safety-row span,
.app-list small,
.other-product small,
.age-card p {
  color: var(--muted);
}

.meta {
  margin: 0;
  font-size: 14px;
}

.hero__icon {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 8px 20px rgba(32, 33, 36, 0.14);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) 276px;
  gap: 72px;
  max-width: 1121px;
}

.main-column {
  min-width: 0;
}

.stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: -64px;
  margin-bottom: 28px;
}

.stats > div {
  min-width: 96px;
  padding: 0 20px;
  text-align: center;
  border-right: 1px solid #e0e0e0;
}

.stats > div:first-child {
  padding-left: 0;
}

.stats > div:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.stats span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.mobile-age {
  display: none;
}

.actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 26px;
}

.install {
  width: 204px;
  height: 44px;
  border: 0;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
}

.link-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.device {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 76px;
  font-size: 14px;
}

.screenshots {
  display: flex;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 28px;
  scrollbar-width: none;
}

.screenshots::-webkit-scrollbar {
  display: none;
}

.screenshots img {
  flex: 0 0 150px;
  width: 150px;
  height: 296px;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.content-section {
  margin: 8px 0 34px;
}

.content-section h2,
.sidebar-block h2 {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 500;
}

.content-section p {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.65;
}

.content-section h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-size: 14px;
}

.safety-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 24px 20px;
}

.safety-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
  color: #3c4043;
}

.safety-row strong,
.safety-row span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

.detail-link {
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
}

.side-column {
  padding-top: 172px;
}

.age-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 36px;
}

.rating-mark {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #9aa0a6;
  color: #202124;
  font-size: 16px;
  font-weight: 700;
  background: repeating-linear-gradient(45deg, #f7f7f7 0 4px, #e3e3e3 4px 8px);
}

.age-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 400;
}

.age-card p {
  margin: 0 0 12px;
  font-size: 14px;
}

.age-card a {
  color: #2962ff;
  font-size: 14px;
}

.sidebar-block {
  margin-bottom: 34px;
}

.sidebar-block h2 {
  margin-bottom: 18px;
}

.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.app-list li,
.other-product {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.app-list img,
.other-product img {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 11px;
}

.app-list span,
.other-product span {
  min-width: 0;
}

.app-list strong,
.other-product strong {
  display: block;
  color: #202124;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-list small,
.other-product small {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}

.reviews-section {
  margin: 40px 0 20px;
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.reviews-head h2 {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 500;
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.verified svg,
.device-chip svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.device-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 34px;
}

.device-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: #3c4043;
  font-size: 14px;
}

.device-chip.active {
  border-color: #e6f4ea;
  background: #e6f4ea;
  color: var(--green);
}

.rating-summary {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 36px;
}

.score-box strong {
  display: block;
  margin-bottom: 8px;
  color: #202124;
  font-size: 58px;
  line-height: 0.95;
  font-weight: 400;
}

.stars,
.review-stars {
  color: var(--green);
  letter-spacing: 0;
}

.stars {
  margin-bottom: 7px;
  font-size: 17px;
  line-height: 1;
}

.stars span {
  display: inline-block;
  width: 8px;
  overflow: hidden;
}

.score-box small,
.review small,
.review-stars time,
.developer-reply time {
  color: var(--muted);
  font-size: 12px;
}

.score-bars {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.score-bars div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.score-bars i {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e8eb;
}

.score-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.review {
  margin-bottom: 34px;
}

.review-top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  margin-bottom: 14px;
}

.review-top strong {
  font-size: 14px;
  font-weight: 400;
}

.review-top button {
  justify-self: end;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #3c4043;
  font-size: 24px;
  line-height: 1;
}

.avatar {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.avatar.photo {
  background:
    radial-gradient(circle at 66% 38%, #f2d3a3 0 8%, transparent 9%),
    radial-gradient(circle at 52% 38%, #202124 0 15%, transparent 16%),
    linear-gradient(135deg, #365a35, #8e6b47 55%, #1c3320);
}

.avatar.green {
  background: #689f38;
}

.avatar.blue {
  background: #1976d2;
}

.review-stars {
  margin-bottom: 12px;
  font-size: 12px;
}

.review-stars time {
  margin-left: 14px;
}

.review p {
  margin: 0 0 16px;
  color: #3c4043;
  font-size: 14px;
  line-height: 1.55;
}

.review small {
  display: block;
  margin-bottom: 15px;
}

.helpful {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.helpful button {
  min-width: 48px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: #3c4043;
  font-size: 13px;
}

.developer-reply {
  margin-top: 24px;
}

.developer-reply strong,
.developer-reply time {
  display: block;
}

.developer-reply strong {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.developer-reply time {
  margin-bottom: 10px;
}

.all-reviews {
  height: 40px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 760px) {
  .topbar {
    height: 102px;
  }

  .topbar__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 52px 50px;
    gap: 0 12px;
    padding: 0 14px;
  }

  .brand {
    font-size: 20px;
    min-width: 0;
  }

  .brand span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .brand img,
  .profile {
    width: 36px;
    height: 36px;
  }

  .toolbar {
    grid-column: 2;
    grid-row: 1;
    gap: 14px;
  }

  .tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-around;
    gap: 0;
  }

  .page {
    padding: 48px 22px 54px;
  }

  .hero {
    display: block;
    min-height: 0;
  }

  .hero__text {
    align-items: center;
    gap: 16px;
  }

  .hero__mobile-icon {
    display: block;
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    border-radius: 13px;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.25);
  }

  .hero__icon {
    display: none;
  }

  h1 {
    margin-bottom: 4px;
    font-size: 23px;
    line-height: 1.18;
  }

  .layout {
    display: block;
  }

  .stats {
    margin: 28px 0 30px;
    width: 100%;
    justify-content: center;
  }

  .stats > div {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 12px;
  }

  .mobile-age {
    display: block;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
    margin-bottom: 26px;
  }

  .install {
    grid-column: 1 / -1;
    width: 100%;
    height: 38px;
  }

  .link-action {
    justify-content: center;
  }

  .device {
    margin-bottom: 70px;
  }

  .screenshots {
    gap: 10px;
    margin-left: -2px;
    width: calc(100% + 2px);
  }

  .screenshots img {
    flex-basis: 102px;
    width: 102px;
    height: 198px;
  }

  .side-column {
    display: none;
  }

  .content-section h2 {
    justify-content: space-between;
  }

  .safety-card {
    padding: 18px 18px 20px;
  }

  .reviews-section {
    margin-top: 38px;
  }

  .rating-summary {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 18px;
  }

  .score-box strong {
    font-size: 52px;
  }

  .helpful {
    flex-wrap: wrap;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .page {
    padding-left: 32px;
    padding-right: 32px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 42px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 160px;
  }

  .hero__icon {
    width: 156px;
    height: 156px;
  }
}
