.ios-page {
  min-height: 100vh;
  background: #f6f8fb;
  overflow-x: hidden;
}

.ios-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 0 max(20px, env(safe-area-inset-left)) 0 max(20px, env(safe-area-inset-right));
  background: rgba(246, 248, 251, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.ios-header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(33, 107, 255, 0.16);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
}

.ios-main {
  width: calc(100% - 40px);
  max-width: 920px;
  margin: 0 auto;
  padding: 54px 0 54px;
}

.ios-main > * {
  min-width: 0;
  max-width: 100%;
}

.ios-hero {
  margin-bottom: 24px;
}

.ios-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ios-title-row > div {
  min-width: 0;
}

.ios-app-icon {
  flex: 0 0 58px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
}

.ios-app-icon img {
  width: 30px;
  height: 30px;
}

.ios-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
}

.ios-lead {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.video-section {
  padding: 18px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.video-shell {
  overflow: hidden;
  min-width: 0;
  background: #101827;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
}

.tutorial-video {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  background: #101827;
}

.ios-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  margin: 18px 0 0;
}

.ios-actions .primary-btn,
.ios-actions .secondary-btn {
  width: 100%;
  min-height: 48px;
}

.ios-note {
  margin-top: 18px;
  padding: 22px;
  min-width: 0;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ios-note h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.ios-note p {
  margin: 8px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .ios-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .ios-header-link {
    width: 100%;
  }

  .ios-main {
    width: min(300px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    margin-right: auto;
    margin-left: auto;
    padding: 38px 0 42px;
  }

  .ios-title-row {
    display: block;
  }

  .ios-app-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }

  .ios-app-icon img {
    width: 26px;
    height: 26px;
  }

  .ios-hero h1 {
    font-size: 31px;
    overflow-wrap: anywhere;
  }

  .video-section {
    padding: 10px;
    width: 100%;
    overflow: hidden;
  }

  .ios-actions {
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .ios-note {
    overflow: hidden;
  }

  .ios-note p {
    word-break: break-word;
  }
}
