:root {
  --ink: #131c18;
  --muted: #5c6a65;
  --line: #d9e0dc;
  --soft: #eef3f0;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.store-row,
.footer-links {
  display: flex;
  align-items: center;
}

.footer-links a {
  text-decoration: none;
}

.app-category {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.app-catalog {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px clamp(22px, 5vw, 86px) 80px;
}

.store-app {
  padding: 44px 0 54px;
  border-bottom: 1px solid var(--line);
}

.app-head {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.app-icon {
  width: 116px;
  height: 116px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 14px 36px rgba(19, 28, 24, 0.14);
}

.title-block {
  min-width: 0;
}

.store-app h2 {
  margin: 8px 0 0;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.06;
}

.app-description {
  max-width: 980px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.tag-row span {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: #34423d;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  font-weight: 850;
}

.store-row {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
  margin-top: 34px;
}

.store-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
}

.store-badge img {
  width: auto;
  height: 52px;
}

.store-badge.google img {
  height: 50px;
}

.qr-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: underline;
}

.qr-link:hover {
  color: var(--ink);
}

.screenshot-row {
  display: flex;
  gap: 26px;
  margin-top: 58px;
  padding: 0 0 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: #bbc8c1 transparent;
  scrollbar-width: thin;
}

.screenshot-row::-webkit-scrollbar {
  height: 10px;
}

.screenshot-row::-webkit-scrollbar-track {
  background: transparent;
}

.screenshot-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #bbc8c1;
}

.screenshot-row figure {
  flex: 0 0 clamp(280px, 34vw, 430px);
  height: clamp(500px, 62vw, 760px);
  margin: 0;
  overflow: hidden;
  border: 10px solid #101915;
  border-radius: 28px;
  background: #f6f7f5;
  box-shadow: 0 18px 44px rgba(19, 28, 24, 0.14);
  scroll-snap-align: start;
}

.screenshot-row img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f6f7f5;
}

.screenshot-row.mockup-row figure {
  border: 0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(19, 28, 24, 0.1);
}

.screenshot-row.mockup-row img {
  background: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px clamp(22px, 5vw, 86px);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 8px 0 0;
}

.footer-links {
  align-self: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 800;
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.qr-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.qr-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.qr-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.qr-close:hover {
  color: var(--ink);
}

.qr-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.qr-dialog h2 {
  margin: 0 0 18px;
  font-size: 1.4rem;
  line-height: 1.2;
}

.qr-dialog img {
  width: min(70vw, 300px);
  height: min(70vw, 300px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.qr-open-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: underline;
}

@media (max-width: 680px) {
  .store-app {
    padding-top: 34px;
  }

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

  .app-icon {
    width: 86px;
    height: 86px;
    border-radius: 16px;
  }

  .app-description {
    margin-top: 24px;
    font-size: 1.12rem;
  }

  .store-badge img {
    height: 42px;
  }

  .store-badge.google img {
    height: 40px;
  }

  .screenshot-row {
    gap: 18px;
    margin-top: 40px;
  }

  .screenshot-row figure {
    flex-basis: 82vw;
    height: 70vh;
    min-height: 520px;
    border-width: 8px;
    border-radius: 24px;
  }

  .site-footer {
    flex-direction: column;
  }
}
