* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #202125;
  font-family: "Roboto", sans-serif;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-inline: 20px;
  margin-top: 20px;
}

.header__block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__back {
  width: 18px;
  height: 18px;
}

.header__block-img {
  width: 18px;
  height: 18px;
}

.main {
  display: flex;
  flex-direction: column;
  margin-inline: 20px;
}

.info {
  display: flex;
  align-items: start;
  gap: 25px;
  margin-top: 25px;
}

.info__img {
  width: 70px;
  height: 70px;
}

.info__img.shrink {
  transform: scale(0.5);
  transition: transform 0.3s ease;
}



.info__block {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 5px;
}

.info__block-text {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.info__block-text-title {
  font-size: 22px;
  font-weight: 600;
}

.info__block-text-img {
  width: 24px;
  height: 24px;
}

.info__block-stext {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3b8562;
}

.info__block-stext-title {
  font-size: 13px;
  font-weight: 700;
}

.info__sblock-stext-desc {
  font-size: 13px;
  font-weight: 700;
}

.info__block-ad {
  font-size: 13px;
  font-weight: 400;
  color: #737373;
  margin-top: 9px;
}

.rating {
  display: flex;
  align-items: center;
  margin-top: 24px;
}

.rating__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding-inline: 38px; */
  border-right: 1px solid #fff;
  color: #fff;
  gap: 5px;
  width: 115px;
}

.rating__block-points {
  font-size: 14px;
}

.rating__block-text {
  font-size: 12px;
  color: #898989;
}

.create__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding-inline: 38px; */
  border-right: 1px solid #fff;
  color: #fff;
  gap: 5px;
  width: 115px;
}

.create__block-img {
  width: 20px;
  height: 20px;
}

.create__block-text {
  font-size: 12px;
  color: #898989;
}

.age__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-inline: 38px;
  color: #fff;
  gap: 5px;
  width: 115px;
}

.age__block-img {
  width: 28px;
  height: 17px;
}

.age__block-text {
  font-size: 12px;
  color: #898989;
}

.create__button {
  text-decoration: none;
  text-align: center;
  width: 100%;
  padding-block: 10px;
  background-color: #3b8562;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-top: 30px;
  border-radius: 4px;
}
#iPA,
#opPA {
  display: none;
}

.slider {
  display: flex;
  margin-top: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  -ms-overflow-style: none;
  scrollbar-width: none;
}

.slider__el {
  width: 108px;
  height: 190px;
  scroll-snap-align: center;
  border-radius: 10px;
}

.description {
  margin-top: 8px;
  color: #fff;
}

.description__title {
  font-size: 16px;
  font-weight: 400;
}

.description__content {
  color: #a1a1a2;
  font-size: 14px;
  margin-top: 20px;
  max-height: 100px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
  line-height: 1.8;
}

.description__content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 90%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.description__content--expanded {
  max-height: 1000px;
}

.description__content--expanded::after {
  opacity: 0;
}

.description__block {
  display: flex;
  align-items: center;
  justify-content: center;
}

.description__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  background: none;
  border: none;
  color: #3b8562;
}

.reviews {
  margin-top: 32px;
  color: #fff;
}

.reviews__title {
  font-size: 16px;
}

.reviews__rating {
  display: flex;
  align-items: start;
  gap: 6px;
  margin-top: 25px;
}

.reviews__rating-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -12px;
}

.reviews__rating-text-title {
  font-size: 64px;
  font-weight: 400;
}

.stars {
  display: flex;
  gap: 4px;
}

.stars:nth-child(2) {
  display: flex;
  gap: 8px;
}

.stars__star {
  width: 12px;
  height: 14px;
}

.reviews__rating-text-all {
  font-size: 12px;
  color: #898989;
  margin-top: 5px;
}

.reviews__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.list__block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.list__block-mark {
  font-size: 11px;
  color: #737373;
}

.list__block-bar {
  width: 100%;
  height: 10px;
}

.users {
  margin-right: 20px;
  margin-top: 35px;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.user {
  display: flex;
  align-items: start;
  gap: 24px;
}

.user__avatar {
  border-radius: 24px;
}

.user__header {
  display: flex;
  justify-content: space-between;
}

.user__header-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.user__header-name {
  font-size: 13px;
  font-weight: 600;
}

.user__header-date {
  font-size: 12px;
  color: #aaaaaa;
  font-weight: 400;
}

.user__header-block {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 10px;
}

.user__header-likes-like {
  width: 24px;
  height: 24px;
}

.user__header-likes {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #a1a1a2;
}

.user__header-likes-count {
  font-size: 10px;
}

.user__desc {
  font-size: 14px;
  line-height: 1.8;
  font-weight: 400;
  color: #a1a1a2;
  margin-bottom: 20px;
}

.author {
  margin-top: -20px;
}

.author__review {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: #4c4c4c;
  padding: 12px;
  color: #a1a1a2;
}

.author__review-name {
  font-size: 14px;
  font-weight: 600;
}

.author__review-date {
  font-size: 12px;
}

.author__review-desc {
  font-size: 14px;
}

.author__review-header {
  display: flex;
  justify-content: space-between;
}

.triangle {
  transform: rotate(180deg);
  margin-bottom: -6px;
  margin-left: 20px;
  width: 20px;
  height: 10px;
}

.footer {
  margin-inline: 20px;
  margin-top: 25px;
  color: #fff;
  margin-bottom: 50px;
}

.footer__title {
  font-size: 16px;
  font-weight: 400;
}

.footer__columns {
  margin-top: 30px;
  display: flex;
  gap: 80px;
}

.footer__block {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.footer__block-title {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 12px;
}

.footer__block-desc {
  font-size: 14px;
  color: #a1a1a2;
}

.install-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid #00f;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.install-animation.animate {
  animation: jump 1s ease-out forwards;
}

@keyframes jump {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  50% { transform: translate(-50%, -100%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.install-container {
  position: relative;
  width: 100%;       /* растягиваем на всю ширину */
  margin-top: 30px;  /* как у кнопки */
}

.info__img-container {
  position: relative;
  width: 70px;   /* исходная ширина */
  height: 70px;  /* исходная высота */
}

.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid #3b8562;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  display: none;       /* скрыт по умолчанию */
  z-index: 2;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.spinner.animate {
  display: block;
  animation: spin 1s linear infinite;
}

/* Начальное состояние кнопки Open — серая и некликабельная */
#openPWA.disabled {
  background-color: #bfbfbf;   /* серый фон */
  color: #fff;              /* светлый текст */
  cursor: not-allowed;      /* курсор запрещён */
  pointer-events: none;     /* клики игнорируются */
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* После таймера — зелёная и кликабельная */
#openPWA.enabled {
  background-color: #3b8562; /* зелёный фон */
  color: #fff;               /* белый текст */
  cursor: pointer;           /* обычный курсор */
  pointer-events: auto;      /* клики разрешены */
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========== Install Modal ========== */
.install-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.install-modal.active {
  display: flex;
}

.install-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.install-modal__content {
  position: relative;
  background: #fff;
  width: 100%;
  border-radius: 24px 24px 0 0;
  padding: 28px 20px 24px;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.install-modal__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 24px;
}

.install-modal__logo {
  width: 28px;
  height: 28px;
}

.install-modal__brand {
  font-size: 18px;
  font-weight: 500;
  color: #5f6368;
}

.install-modal__body {
  text-align: center;
  margin-bottom: 28px;
}

.install-modal__title {
  font-size: 20px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 10px;
  line-height: 1.4;
}

.install-modal__subtitle {
  font-size: 14px;
  color: #5f6368;
  margin-bottom: 28px;
}

.install-modal__phone {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.install-modal__phone-screen {
  width: 100%;
  background: #e8e8e8;
  border-radius: 28px 28px 0 0;
  padding: 18px;
  padding-bottom: 0;
  position: relative;
  box-shadow: none;
  border: 3px solid #c0c0c0;
  border-bottom: none;
  overflow: hidden;
}

.install-modal__phone-screen::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
  z-index: 1;
}

.install-modal__phone-notch {
  width: 80px;
  height: 6px;
  background: #1a1a1a;
  border-radius: 10px;
  margin: 0 auto 16px;
}

.install-modal__phone-img {
  width: 100%;
  height: auto;
}

.install-modal__btn {
  width: 100%;
  padding: 16px 24px;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  margin-bottom: 20px;
}

.install-modal__btn:hover {
  background: #1557b0;
}

.install-modal__btn:active {
  background: #174ea6;
  transform: scale(0.98);
}

.install-modal__footer {
  text-align: center;
}

.install-modal__terms {
  font-size: 12px;
  color: #5f6368;
  margin-bottom: 6px;
}

.install-modal__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.install-modal__link {
  font-size: 12px;
  color: #1a73e8;
  text-decoration: none;
}

.install-modal__link:hover {
  text-decoration: underline;
  color: #1557b0;
}

.install-modal__link-sep {
  color: #5f6368;
  font-size: 12px;
}

.install-modal__link--more {
  display: block;
  margin-top: 4px;
}