/* ==========================================================================
   Petr Paroubek — App portfolio
   Styles: design tokens, base, header, hero, catalog, cards, footer, dialogs
   ========================================================================== */

:root {
  color-scheme: dark;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-script: "Caveat", "Snell Roundhand", "Apple Chancery", "Segoe Script", cursive;

  --bg: #050506;
  --bg-deep: #000000;
  --hero-glow: rgba(96, 132, 255, 0.18);
  --hero-glow-2: rgba(140, 160, 255, 0.10);
  --card-bg: #0a0a0d;
  --card-bg-2: #0d0d11;
  --footer-bg: #08080a;
  --toolbar-bg: rgba(7, 7, 9, 0.88);
  --chip-bg: rgba(255, 255, 255, 0.12);

  --text: #f5f5f7;
  --text-soft: #c2c2ca;
  --muted: #8d8d97;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.17);
  --badge-bg: rgba(255, 255, 255, 0.025);

  --shell: 1240px;
  --header-h: 88px;
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 14px;

  --shadow-card: 0 30px 70px -40px rgba(0, 0, 0, 0.95);
}

[data-theme="light"] {
  color-scheme: light;

  --bg: #f4f4f6;
  --bg-deep: #ffffff;
  --hero-glow: rgba(72, 110, 255, 0.16);
  --hero-glow-2: rgba(255, 190, 120, 0.18);
  --card-bg: #ffffff;
  --card-bg-2: #fbfbfd;
  --footer-bg: #ececf0;
  --toolbar-bg: rgba(244, 244, 246, 0.9);
  --chip-bg: rgba(0, 0, 0, 0.075);

  --text: #0d0d10;
  --text-soft: #3c3c44;
  --muted: #6d6d78;
  --line: rgba(0, 0, 0, 0.085);
  --line-strong: rgba(0, 0, 0, 0.16);
  --badge-bg: rgba(255, 255, 255, 0.6);
  --shadow-card: 0 26px 60px -40px rgba(20, 20, 40, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid #6f9bff;
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.shell {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: #fff;
  color: #000;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.signature {
  font-family: var(--font-script);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 60;
  padding-block: 20px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand__apple {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--text);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__tagline {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 11px 22px;
  font-size: 0.94rem;
  cursor: pointer;
  background: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--chip-bg);
  transform: translateY(-1px);
}

.btn--solid {
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.btn--solid:hover {
  opacity: 0.88;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, #0f141b 0%, #070a0e 22%, #04060a 34%, #0a0e13 42%, #0a0e13 100%);
}

.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: 60%;
  aspect-ratio: 1208 / 784;
  z-index: 1;
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 9%);
  mask-image: linear-gradient(to right, transparent 0%, #000 9%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: clamp(340px, 29vw, 460px);
  padding-block: clamp(44px, 5vw, 72px);
}

.hero__content {
  max-width: 620px;
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.019em;
}

.hero__lead {
  margin: 20px 0 0;
  font-size: clamp(0.99rem, 1.15vw, 1.17rem);
  line-height: 1.5;
  color: var(--text-soft);
}

.hero__signature {
  margin: 22px 0 0;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  color: var(--text);
  opacity: 0.92;
}

.hero__role {
  margin: 4px 0 0;
  font-size: 0.63rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin: 0 40px 0 0;
  padding-top: 0;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

[data-theme="light"] .hero__meta {
  color: rgba(0, 0, 0, 0.4);
}
/* --------------------------------------------------------------------------
   Catalog + sticky toolbar
   -------------------------------------------------------------------------- */

.catalog {
  position: relative;
  padding-bottom: 34px;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--toolbar-bg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.toolbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.toolbar__inner > * {
  min-width: 0;
}

.filters {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.filters li {
  display: flex;
  align-items: center;
}

.filters li + li::before {
  content: "";
  width: 1px;
  height: 15px;
  margin-inline: 8px;
  background: var(--line-strong);
}

.filter {
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.22s ease, background-color 0.22s ease;
}

.filter:hover {
  color: var(--text);
}

.filter.is-active {
  background: var(--chip-bg);
  color: var(--text);
}

.toolbar__store {
  display: flex;
  align-items: center;
  gap: 16px;
}

.toolbar__store-label {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* App Store badge (reused in toolbar, cards and footer) */

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--badge-bg);
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.store-badge:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

.store-badge__logo {
  width: 22px;
  height: 22px;
  flex: none;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-align: left;
}

.store-badge__pre {
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.store-badge__main {
  margin-top: 3px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.store-badge--sm {
  padding: 6px 13px;
  border-radius: 10px;
  gap: 8px;
}

.store-badge--sm .store-badge__logo {
  width: 17px;
  height: 17px;
}

.store-badge--sm .store-badge__pre {
  font-size: 0.52rem;
}

.store-badge--sm .store-badge__main {
  margin-top: 2px;
  font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   App cards
   -------------------------------------------------------------------------- */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 26px 0 10px;
}

.app-card {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.008) 46%, rgba(255, 255, 255, 0) 100%),
    var(--card-bg);
  box-shadow: var(--shadow-card);
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

[data-theme="light"] .app-card {
  background: linear-gradient(180deg, #ffffff 0%, var(--card-bg-2) 100%);
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.app-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-card__icon {
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 15px;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app-card__name {
  margin: 0;
  font-size: 1.36rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.15;
}

.app-card__claim {
  margin: 5px 0 0;
  font-size: 0.81rem;
  color: var(--muted);
}

.app-card__showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 20px;
}

.phone {
  margin: 0;
  min-width: 0;
}

.phone__frame {
  position: relative;
  overflow: hidden;
  border: 5px solid #141417;
  border-radius: 26px;
  background: #000;
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .phone__frame {
  border-color: #1c1c20;
}

.phone__frame::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 32%;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0b0b0d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 2;
  pointer-events: none;
}

.phone__screen {
  width: 100%;
  height: auto;
  border-radius: 21px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 6px 0 0;
  list-style: none;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.795rem;
  line-height: 1.32;
  color: var(--text-soft);
}

.feature__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
}

.feature__icon svg {
  width: 12px;
  height: 12px;
}

.app-card__desc {
  margin: 18px 0 0;
  font-size: 0.83rem;
  line-height: 1.52;
  color: var(--text-soft);
}

.app-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.qr {
  flex: none;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.qr img,
.qr svg {
  width: 100%;
  height: 100%;
}

/* Main App Store image on the card */

.shot {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0b0b0f;
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.95);
}

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 1304;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.app-card:hover .shot img {
  transform: scale(1.03);
}

.app-card__actions .store-badge {
  flex: 1;
  min-height: 62px;
  border-radius: 14px;
}

/* "More coming" card */

.app-card__media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #07070c;
}

.app-card__media img {
  width: 100%;
  height: auto;
}

.app-card--more .app-card__showcase {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}

.app-card__cta {
  width: 100%;
  padding: 14px 22px;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 46px 0 44px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer__brand svg {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--text);
  opacity: 0.92;
}

.site-footer__name {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-footer__role {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

.site-footer__cta {
  text-align: center;
}

.site-footer__headline {
  margin: 0;
  font-size: clamp(1.4rem, 2.1vw, 1.75rem);
  font-weight: 300;
  letter-spacing: -0.015em;
}

.site-footer__thanks {
  margin: 10px 0 2px;
  font-size: 0.86rem;
  color: var(--muted);
}

.site-footer__signature {
  margin: 0;
  font-size: 1.9rem;
  color: var(--text);
  opacity: 0.9;
}

.site-footer__quote {
  justify-self: end;
  max-width: 250px;
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
}

.site-footer__quote p {
  margin: 0;
  font-size: 0.79rem;
  line-height: 1.5;
  color: var(--muted);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-footer__links a,
.site-footer__links button {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.site-footer__links a:hover,
.site-footer__links button:hover {
  color: var(--text);
}

.site-footer__store {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Dialogs (newsletter + privacy)
   -------------------------------------------------------------------------- */

.dialog {
  width: min(94vw, 470px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 50px 130px -30px rgba(0, 0, 0, 0.9);
}

.dialog::backdrop {
  background: rgba(2, 2, 4, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dialog__inner {
  padding: 30px 30px 28px;
}

.dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.dialog__close:hover {
  color: var(--text);
  background: var(--line-strong);
}

.dialog__close svg {
  width: 15px;
  height: 15px;
}

.dialog__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--text);
}

.dialog__icon svg {
  width: 21px;
  height: 21px;
}

.dialog__title {
  margin: 0;
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dialog__text {
  margin: 10px 0 20px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.dialog__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dialog__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--muted);
}

.dialog__field input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(127, 127, 145, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dialog__field input::placeholder {
  color: var(--muted);
}

.dialog__field input:focus {
  border-color: var(--text-soft);
  outline: none;
}

.dialog__hint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}

.dialog__status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.8rem;
  color: #58d68d;
}

.dialog__status.is-error {
  color: #ff8a8a;
}

.dialog__body {
  max-height: min(60vh, 460px);
  overflow-y: auto;
  padding-right: 6px;
}

.dialog__body h3 {
  margin: 18px 0 6px;
  font-size: 0.92rem;
}

.dialog__body p,
.dialog__body li {
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--muted);
}

.dialog__body ul {
  margin: 8px 0;
  padding-left: 18px;
}

body.has-dialog {
  overflow: hidden;
}

.app-card--more .app-card__actions {
  padding-top: 24px;
}

/* --------------------------------------------------------------------------
   Card → detail affordance, "coming soon" state
   -------------------------------------------------------------------------- */

.app-card[data-slug] {
  cursor: pointer;
}

.app-card__heading {
  flex: 1;
  min-width: 0;
}

.app-card__open {
  color: inherit;
  text-decoration: none;
}

.app-card__more {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.app-card__more svg {
  width: 14px;
  height: 14px;
}

.app-card:hover .app-card__more,
.app-card:focus-within .app-card__more {
  opacity: 1;
  transform: none;
  color: var(--text);
}

@media (hover: none) {
  .app-card__more {
    opacity: 1;
    transform: none;
  }
}

a.qr {
  transition: transform 0.25s ease;
}

a.qr:hover {
  transform: scale(1.04);
}

.soon {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
}

.soon svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.soon span {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  line-height: 1.3;
}

.soon strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.is-flipped {
  transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   Motion & reveal
   -------------------------------------------------------------------------- */

[data-reveal],
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-reveal].is-visible,
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.app-card[hidden] {
  display: none;
}

.app-card.is-filtered-in {
  animation: cardIn 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar__store-label {
    display: none;
  }

  .site-footer__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
  }

  .site-footer__quote {
    grid-column: 1 / -1;
    justify-self: stretch;
    max-width: none;
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 960px) {
  .hero__meta {
    display: none;
  }

  .hero__media {
    opacity: 0.85;
  }
}

@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero__inner {
    order: 1;
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 0;
  }

  .hero__media {
    order: 2;
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 520px;
    height: auto;
    opacity: 1;
    margin: 8px auto 0;
  }

  .hero__media img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
  }

  .toolbar__store {
    display: none;
  }
}

@media (max-width: 760px) {
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .app-card__showcase {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  }

  .toolbar__inner {
    min-height: 64px;
    padding-block: 6px;
  }

  .filters {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

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

  .site-footer__main {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 38px 0 34px;
  }

  .site-footer__brand {
    justify-content: center;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .site-footer__links {
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 32px, var(--shell));
  }

  .brand__tagline {
    display: none;
  }

  .btn--ghost {
    padding: 10px 15px;
    font-size: 0.84rem;
  }

  .filters {
    flex: 1 1 auto;
  }

  .hero__title {
    font-size: clamp(1.9rem, 8.6vw, 2.4rem);
  }

  .hero__lead {
    margin-top: 18px;
    font-size: 0.95rem;
  }

  .hero__signature {
    margin-top: 22px;
  }

  .app-card {
    padding: 16px 16px 18px;
    border-radius: 20px;
  }

  .app-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
  }

  .app-card__name {
    font-size: 1.2rem;
  }

  .app-card__showcase,
  .app-card--more .app-card__showcase {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .phone,
  .shot {
    max-width: 190px;
  }

  .feature-list {
    padding-top: 0;
  }

  .app-card__actions {
    gap: 8px;
  }

  .qr {
    width: 70px;
    height: 70px;
  }

  .app-card__actions .store-badge {
    min-height: 58px;
  }

  .dialog__inner {
    padding: 26px 20px 24px;
  }
}

@media (max-width: 420px) {
  .brand__tagline {
    display: none;
  }

  .brand__apple {
    width: 22px;
    height: 22px;
  }

  .btn--ghost {
    padding: 10px 15px;
    font-size: 0.84rem;
  }

  .app-card__actions {
    flex-wrap: wrap;
  }

  .app-card__actions .store-badge {
    flex: 1 1 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal],
  .reveal {
    opacity: 1;
    transform: none;
  }
}

