* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --c-green: #0f9d58;
  --c-green-h: #0d8a4d;
  --c-blue: #4285f4;
  --t-main: #202124;
  --t-sec: #5f6368;
  --t-ter: #80868b;
  --bg-w: #ffffff;
  --bg-l: #f8f9fa;
  --b-col: #dadce0;
  --b-l: #e8eaed;
  --sh: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
  --sh-h: 0 2px 4px 0 rgba(60,64,67,0.2), 0 4px 12px 2px rgba(60,64,67,0.15);
  --tr: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  height: 100%;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--t-main);
  background: var(--bg-w);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1;
  text-rendering: optimizeLegibility;
}

.wrapper-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.top-bar {
  background: var(--bg-w);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid var(--b-col);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand-logo {
  font-size: 20px;
  font-weight: 700;
  color: #202124;
  letter-spacing: 0;
  flex-shrink: 0;
}

.brand-img {
  height: 40px;
  display: block;
}

.menu-items {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
}

.menu-link {
  color: var(--t-sec);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: var(--tr);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.menu-link:hover {
  color: #202124;
}

.menu-link.active {
  color: var(--c-green);
  border-bottom-color: var(--c-green);
  font-weight: 500;
}

.content-area {
  padding: 32px 0;
  background: var(--bg-w);
}

.item-header {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--b-col);
}

.item-details {
  flex: 1;
}

.item-name {
  font-size: 36px;
  font-weight: 400;
  color: var(--t-main);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dev-name {
  color: var(--c-green);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  transition: var(--tr);
}

.dev-name:hover {
  color: var(--c-green-h);
}

.extra-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--t-sec);
}

.info-txt {
  font-weight: 400;
}

.info-sep {
  color: var(--t-sec);
  font-weight: 400;
}

.stats-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 20px;
  min-width: 120px;
}

.stat-box:first-child {
  padding-left: 0;
}

.stat-box:last-child {
  padding-right: 0;
}

.stat-line {
  width: 1px;
  height: 48px;
  background: #e0e0e0;
  margin: 0 8px;
  flex-shrink: 0;
}

.stat-data {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.score-val {
  font-size: 22px;
  font-weight: 600;
  color: var(--t-main);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.count-val {
  font-size: 22px;
  font-weight: 600;
  color: var(--t-main);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.icon-star {
  color: #000000;
  font-size: 18px;
  line-height: 1;
  margin-left: 2px;
}

.stat-desc {
  font-size: 13px;
  color: var(--t-sec);
  line-height: 1.5;
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.stat-desc span {
  display: inline-block;
  margin-right: 4px;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1px solid #5f6368;
  border-radius: 50%;
  font-size: 10px;
  color: #5f6368;
  font-style: normal;
  line-height: 1;
  margin-left: 2px;
}

.age-box {
  align-items: center;
}

.age-circle {
  width: 48px;
  height: 48px;
  border: 2px solid #ff9800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  background: transparent;
}

.age-num {
  font-size: 18px;
  font-weight: 500;
  color: var(--t-main);
  line-height: 1;
}

.action-btns {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
}

.dl-form {
  flex: 1 1 auto;
  display: flex;
}

.dl-form .action-primary {
  width: 100%;
}

.action-primary {
  background: var(--c-green);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--tr);
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
  letter-spacing: 0.01em;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  box-sizing: border-box;
}

.action-primary:hover {
  background: var(--c-green-h);
  box-shadow: 0 2px 6px 0 rgba(60,64,67,0.3), 0 6px 12px 4px rgba(60,64,67,0.2);
  transform: translateY(-2px);
}

.action-primary:active {
  transform: translateY(0);
}

.action-secondary {
  background: transparent;
  color: var(--t-main);
  border: 1px solid var(--b-col);
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--tr);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
  min-height: 48px;
  box-sizing: border-box;
  white-space: nowrap;
}

.action-secondary:hover {
  background: var(--bg-l);
  border-color: var(--b-l);
  box-shadow: 0 1px 2px 0 rgba(60,64,67,0.1);
}

.icon-svg {
  flex-shrink: 0;
}

.icon-wrap {
  flex-shrink: 0;
}

.main-icon {
  width: 128px;
  height: 128px;
  background: transparent;
  border-radius: 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr);
  overflow: hidden;
}

.main-icon:hover {
  transform: translateY(-2px);
}

.icon-age {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.icon-note {
  width: 60px;
  height: 60px;
  position: relative;
  z-index: 1;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  position: relative;
  z-index: 1;
  box-shadow: none;
  transition: var(--tr);
}

.main-icon:hover .logo-img {
  box-shadow: none;
}

.app-content {
  margin-top: 0;
}

.description-section {
  margin-bottom: 48px;
}

.description-section h2 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--t-main);
}

.description {
  font-size: 14px;
  color: var(--t-sec);
  margin-bottom: 32px;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.feature-card {
  background: var(--bg-l);
  border: 1px solid var(--b-col);
  border-radius: 8px;
  padding: 24px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--t-main);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  font-size: 14px;
  color: var(--t-sec);
  margin: 8px 0;
  line-height: 1.6;
}

.reassure {
  font-size: 14px;
  color: var(--t-sec);
  font-style: italic;
  margin-top: 24px;
}

.media-section {
  margin-top: 32px;
  margin-bottom: 32px;
}

.media-section.hidden-gallery {
  display: none;
}

.media-section.verified-user {
  display: block;
}

#media-slot {
  margin-top: 32px;
  margin-bottom: 32px;
}

#media-slot:empty {
  display: none;
}

.media-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0 16px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.media-grid::-webkit-scrollbar {
  height: 6px;
}

.media-grid::-webkit-scrollbar-track {
  background: var(--bg-l);
  border-radius: 3px;
}

.media-grid::-webkit-scrollbar-thumb {
  background: var(--b-col);
  border-radius: 3px;
}

.media-grid::-webkit-scrollbar-thumb:hover {
  background: var(--t-sec);
}

.media-item {
  flex-shrink: 0;
  width: 200px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
  transition: var(--tr);
  cursor: pointer;
  background: var(--bg-l);
}

.media-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15), 0 8px 24px rgba(0,0,0,0.1);
}

.media-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bg-l);
}

.media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.media-img.protected-blur,
.logo-img.protected-blur {
  filter: blur(15px);
  user-select: none;
  -webkit-user-select: none;
  transition: filter 0.3s ease;
  cursor: pointer;
}

.logo-img.protected-blur {
  pointer-events: none;
}

.media-img.protected-blur {
  pointer-events: auto;
}

.media-img.verified-user,
.logo-img.verified-user {
  filter: blur(0);
  -webkit-filter: blur(0);
  pointer-events: auto;
}

.action-primary.disabled-state {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.media-item:hover .media-img {
  transform: scale(1.05);
}

.bottom-bar {
  background: var(--bg-l);
  border-top: 1px solid var(--b-col);
  padding: 24px 0;
  margin-top: 48px;
}

.bottom-bar .wrapper-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.bottom-bar small {
  font-size: 12px;
  color: var(--t-sec);
}

.bottom-links {
  display: flex;
  gap: 16px;
}

.bottom-links a {
  color: var(--t-sec);
  text-decoration: none;
  font-size: 12px;
}

.bottom-links a:hover {
  color: var(--t-main);
}

@media (max-width: 768px) {
  .wrapper-main {
    padding: 0 16px;
  }

  .nav-container {
    height: 56px;
    gap: 16px;
  }

  .brand-logo img {
    height: 32px;
  }

  .item-header {
    flex-direction: row;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    align-items: flex-start;
  }

  .icon-wrap {
    align-self: flex-start;
    order: -1;
    flex-shrink: 0;
    margin-top: 0;
  }

  .item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .main-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .item-name {
    font-size: 22px;
    margin-bottom: 4px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-weight: 400;
  }

  .dev-name {
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
  }

  .menu-items {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .menu-items::-webkit-scrollbar {
    display: none;
  }

  .menu-link {
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 0;
  }

  .stats-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }

  .stat-box {
    padding: 0 10px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .stat-box:first-child {
    padding-left: 0;
  }

  .stat-box:last-child {
    padding-right: 0;
  }

  .stat-line {
    height: 36px;
    margin: 0 4px;
  }

  .score-val,
  .count-val {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  .stat-desc {
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.01em;
  }

  .age-circle {
    width: 36px;
    height: 36px;
    margin-bottom: 4px;
  }

  .age-num {
    font-size: 14px;
  }

  .action-btns {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
    align-items: stretch;
  }

  .action-primary {
    width: 100%;
    flex: none;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.01em;
    min-height: 48px;
    border-radius: 20px;
    box-sizing: border-box;
    display: flex;
  }

  .action-secondary {
    width: 100%;
    flex: none;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    min-height: 48px;
    box-sizing: border-box;
    display: flex;
    white-space: nowrap;
  }

  .media-section {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .media-item {
    width: 140px;
    border-radius: 10px;
  }
}
